x = sorted(list(map(int, input().split()))) if x[3] - x[2] == x[2] - x[1] == x[1] - x[0]: print('Yes') else: print('No')