a=[int(i) for i in input().split()] for i in range(1,101): if (a[0]/i.isdigit()) and (a[1]%i==0): print("YES")