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