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