#include #include int main(void){ double a,b; scanf("%d%d",&a,&b); if(floor(b/a) != b/a){ printf("NO"); }else{ printf("%d",b/a); } }