a,b=map(int,input().split()) print('YNEOS'[not(not(a%b))::2])