n = [int(i) for i in input().split()] n.sort() if n[2] - n[1] == n[1] - n[0] and n[3] - n[2] == n[2] - n[1]: print("Yes") else: print("No")