a,b = map(int,input().split()) if b % a != 0: print('NO') else: print(b // a)