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