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