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