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