hours,start,cd=map(int,input().split()) a,b = hours,cd mod = 0 while a % b != 0:
mod = a % b a = b b = mod
if mod== 1:
print("Yes")
else:
print("No")