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