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