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