def getlist(): return list(map(int, input().split())) A, B = getlist() if B % A == 0: print(int(B // A)) else: print("NO")