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