A = sorted(list(map(int, input().split()))) a,b,c = A X = int(input()) def gcd(x,y): if y==0: return x return gcd(y,x%y) d1 = c-a d2 = c-b d = gcd(d1,d2) if X%d==0: print("Yes") else: print("No")