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