#include
using namespace std;
int main() {
// 10 1 2
// 2 - 1
// 10 % 1 = 0
// 10 / 1 = 10
int k, a, b;
cin >> k >> a >> b;
if(b == a) {
cout << "NE" << endl;
return 0;
}
int brojot_na_denovi = k / (b - a);
if(k % (b - a) == 0) {
cout << brojot_na_denovi << endl;
}
else {
cout << "NE" << endl;
}
return 0;
}