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