You are given three integers, A, B and C.   Among them, two are the same, but the remaining one is different from the rest.   For example, when A=5,B=7,C=5, A and C are the same, but B is different.   Find the one that is different from the rest among the given three integers.
A,B,C=map(int,input().split())
print(A+B+C-max(A,B,C)-min(A,B,C))
A,B,C=map(int,input().split())
if A==B:
  print(C)
if A==C:
  print(B)
if B==C:
  print(A)
