# input x = input().split() a, b = int(x[0]), int(x[1]) # process if b % a == 0: print(int(b/a)) else: print('NO')