#include #include #include using namespace std; int main() { std::cin.tie(0); std::ios::sync_with_stdio(false); int A, B; cin >> A >> B; // Ax = B // x = B / A if(A == 0){ cout << "NO" << endl; return 0; } if(abs(B) % abs(A) != 0){ cout << "NO" << endl; return 0; } cout << B / A << endl; return 0; }