// #define _GLIBCXX_DEBUG #include using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); ++i) int main() { // Input int A, B; cin >> A >> B; // Output if (B % A == 0) cout << B / A << endl; else cout << "NO" << endl; }