#include using namespace std; int main(void) { int a, b; cin >> a >> b; if (b % a == 0) cout << b / a; else cout << "NO"; cout << '\n'; return 0; }