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