#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int A, B; cin >> A >> B; for (int x = -1000; x < 1000; x++) { if (A * x == B) { cout << x << '\n'; return 0; } } cout << "NO" << '\n'; return 0; }