N = list(map(int, input().split())) if not N[1] % N[0] == 0: print('NO') else: print(int(N[1] / N[0]))