a,b=map(int, input().split()) a*=1000000000 print("Yes" if a//b*b!=a else "No")