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