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