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