#include #include #include #define REP(i, a, b) for (int i = int(a); i < int(b); i++) using namespace std; typedef long long int lli; int main() { int A, B; cin >> A >> B; if (B % A == 0) cout << B / A << endl; else cout << "NO" << endl; return 0; }