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