#include #include #include #include #include int main(void) { int a,b; double ans=0; scanf("%d %d",&a,&b); ans=(double)b/(double)a; if(fmod(ans,1)==0) { printf("%d",(int)ans); } else { printf("NO"); } }