A,B=map(int,input().split()) Max=100 F=False for i in range(1,Max+1): F|=(A%i==0) and (i%B==0) if F: print("YES") else: print("NO")