#include
#include
#include
#include
#include
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
int k, a, b;
cin >> k >> a >> b;
if(b == a) {
cout << "NE" << endl;
return 0;
}
if(k % (b - a) == 0) {
cout << k / (b - a) << endl;
}
else {
cout << "NE" << endl;
}
return 0;
}
// ({})