A,B=map(int,input().split) x=B/A if x==int(): print(x) else: print('NO')