A,B= map(int,input().split()) print(["YES","NO"][A%B>0])