a, b = map(int, input().split()) x = b % a if x == 0: print(b / a) else: print('NO')