#yuki882 a,b=map(int,raw_input().split()) if a%b==0: print 'YES' else: print 'NO'