a,b = map(int, input().split()) s = "NO" for i in range(b,a+1,b): if a%i==0: s = "YES" print(s)