i = input().split(" ")

if i[1] % i[0] == 0:
    print(int(i[1]) / int(i[0]))

else:
    print("NO")