#include int main() { int x,y; scanf("%d%d",&x,&y); if(y%x==0) printf("%d\n",y/x); else printf("NO\n"); return 0; }