A=raw_input() L=map(int, A.split()) if L[1]%L[0]==0: print L[1]/L[0] else: print 'NO'