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