#define _CRT_SECURE_NO_WARNINGS #include #include int main(void) { double a, b; scanf("%lf%lf", &a, &b); if (floor(b / a) != ceil(b / a)) puts("NO"); else printf("%d\n", (int)(b / a)); return 0; }