#include
using namespace std;
int main()
{
int K, A, B;
cin >> K >> A >> B;
if(A == B) {
cout << "NE" << endl;
}
else if(K % (B - A) == 0) {
cout << K / (B - A) << endl;
}
else {
cout << "NE" << endl;
}
return 0;
}