a,b,c,d = map(int, input().split()) x = abs(a - b) x += abs(a - c) x += abs(a - d) x += abs(b - c) x += abs(b - d) x += abs(c - d) if (x == 0): print ("Yes") else: print ("No")