A, B = map(int, input().split()) if B % A == 0: print(int(B/A)) elif B % A != 0: print('NO')