#include using namespace std; int main(){ int a, b; cin >> a >> b; cout << (b % a == 0 ? to_string(b / a) : "NO") << endl; }