x = input().split(" ") a = int(x[0]) b = int(x[1]) if b % a == 0: print (int(b / a)) else: print("NO")