x , y = map(int,input().split()) print("NO" if y % x != 0 else y // x)