#include using namespace std; using ll = long long; const int mod = 1e9 + 7; const int inf = (1 << 30) - 1; const ll infll = (1LL << 61) - 1; int A, B; int main() { cin >> A >> B; if (abs(B) % abs(A) == 0) cout << B / A << endl; else cout << "NO\n"; }