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