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