i = map(int, raw_input().split()) if i[1] % i[0] == 0: print(i[1] / i[0]) else: print('NO')