import math M = list(map(int, input().split(" "))) n = M[1] % M[0] if n == 0: ans = M[1] / M[0] print(math.ceil(ans)) else: print("NO")