a,b=map(int,input().split()) if 10**100000%b==0: print('No') else: print('Yes')