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