import math x,a,y,b=map(int,input().split()) if math.gcd(x,y)==1 : if a%b==0 or b%a==0: print("No") else: print("Yes") else: print("Yes")