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