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.  

-----Constraints-----
 - -100 \leq A,B,C \leq 100 
 - A, B and C are integers.
 - The input satisfies the condition in the statement.

-----Input-----
Input is given from Standard Input in the following format:  
A B C

-----Output-----
Among A, B and C, print the integer that is different from the rest.

-----Sample Input-----
5 7 5

-----Sample Output-----
7

This is the same case as the one in the statement.

Difficulty: introductory

Starter code:

Solutions:
import bisect,collections,copy,heapq,itertools,math,string
import sys
def I():
    #1 line 1 int
     return int(sys.stdin.readline().rstrip())
def LI():
    #1 line n int
     return list(map(int,sys.stdin.readline().rstrip().split()))
def S():
    #1 line 1 string
     return sys.stdin.readline().rstrip()
def LS():
    #1 line n strings
     return list(sys.stdin.readline().rstrip().split())


xs=LI()

if xs[0] == xs[1]:
    print(xs[2])
elif xs[0] == xs[2]:
    print(xs[1])
else:
    print(xs[0])

A, B, C = map(int,input().split())

if A == B:
    print(C)
elif A == C:
    print(B)
else:
    print(A)

a = input().split(' ')

for i in a:
    if (a.count(i)==1):
        print(i)

a, b, c = map(int, input().split())

if a == b:
    print(c)
elif b == c:
    print(a)
else:
    print(b)

#
# abc075 a
#
import sys
from io import StringIO
import unittest


class TestClass(unittest.TestCase):
    def assertIO(self, input, output):
        stdout, stdin = sys.stdout, sys.stdin
        sys.stdout, sys.stdin = StringIO(), StringIO(input)
        resolve()
        sys.stdout.seek(0)
        out = sys.stdout.read()[:-1]
        sys.stdout, sys.stdin = stdout, stdin
        self.assertEqual(out, output)

    def test_入力例_1(self):
        input = """5 7 5"""
        output = """7"""
        self.assertIO(input, output)

    def test_入力例_2(self):
        input = """1 1 7"""
        output = """7"""
        self.assertIO(input, output)

    def test_入力例_3(self):
        input = """-100 100 100"""
        output = """-100"""
        self.assertIO(input, output)


def resolve():
    A, B, C = list(map(int, input().split()))

    if A == B:
        print(C)
    elif A == C:
        print(B)
    else:
        print(A)


def __starting_point():
    # unittest.main()
    resolve()

__starting_point()

#75
a,b,c=map(int,input().split())
if a==b:
    print(c)
elif a==c:
    print(b)
else:
    print(a)

a, b, c = input().split()
if a == b:
    print(c)
elif b == c:
    print(a)
else:
    print(b)

a,b,c=map(int, input().split())
print(a if b==c else b if c==a else c)

a=list(map(int,input().split()))
b=set(a)

for i in b:
  if (a.count(i))==1:
    print(i)

# 3つの整数のうち1つだけ異なる値を出力
A, B, C = map(int,input().split())

if A == B:
    print(C)
elif A == C:
    print(B)
else:
    print(A)

import collections
l=list(map(int,input().split()))
counted = collections.Counter(l)
print(counted.most_common()[1][0])

l=list(map(int,input().split()))
from collections import Counter
l=list(Counter(l).most_common())
print(l[1][0])

a,b,c = input().split()
if a == b:
    print(c)
elif a == c:
    print(b)
elif b == c:
    print(a)

A,B,C=map(int,input().split())
if A==B :
  print(C)
elif B==C :
  print(A)
else :
  print(B)

a,b,c=map(int,input().split())
if a==b:
  print(c)
elif b==c:
  print(a)
else:
  print(b)

a,b,c = map(int,input().split())

if a == b:
  print(c)
  
elif a == c:
  print(b)
  
else:
  print(a)

A, B, C = [int(i) for i in input().split()]

if A == B:
  print(C)
elif A == C:
  print(B)
elif B == C:
  print(A)


a,b,c = map(int,input().split())
print(a if b==c else b if a==c else c)

a, b, c = map(int, input().split())
print(a ^ b ^ c)

A,B,C = map(int,input().split())

if A == B:
    print(C)
elif A == C:
    print(B)
else:
    print(A)

a, b, c = list(map(int, input().split()))
if a == b:
    print(c)
elif b == c:
    print(a)
else:
    print(b)


a,b,c = map(int, input().split())
if a == b:
    print(c)
elif b == c:
    print(a)
else:
    print(b)

A,B,C = map(int,input().split())

print(A if B == C else B if A == C else C)

A, B, C = sorted(map(int, input().split()))

print((A if B == C else C))


a,b,c=map(int,input().split())
if a==b:
  print(c)
elif a==c:
  print(b)
else:
  print(a)

A, B, C = list(map(int, input().split()))

if A - B == 0:
    print(C)
elif A - C == 0:
    print(B)
else:
    print(A)


a, b, c = map(int, input().split())
if a == b: print(c)
if b == c: print(a)
if c == a: print(b)

A, B, C = map(int, input().split())

if A == C:
    print(B)
elif B == C:
    print(A)
else:
    print(C)

a,b,c = map(int,input().split())
if a != b and a == c:
    print(b)
elif a != b and a != c:
    print(a)
else:
    print(c)

def main():
  a = list(map(int,input().split()))
  if a[0] == a[1]:
    print((a[2]))
  elif a[1] == a[2]:
    print((a[0]))
  else:
    print((a[1]))
    
def __starting_point():
  main()

__starting_point()

integer1, integer2, integer3 = map(int, input().split())
if integer2 == integer3:
    print(integer1)
elif integer1 == integer3:
    print(integer2)
else:
    print(integer3)

a,b,c=map(int,input().split())

print(c) if a == b else print(b) if a == c else print(a)

# A - One out of Three
# https://atcoder.jp/contests/abc075/tasks/abc075_a

A, B, C = list(map(int, input().split()))

if A == B and A != C:
    print(C)
elif A == C and A != B:
    print(B)
elif B == C and A != C:
    print(A)


A,B,C = map(int, input().split())
if A == C:
   print(B)
elif A == B:
    print(C)
else:
    print(A)

# 入力
A, B, C = map(int, input().split())

# 比較して出力
if A == B:
    print(C)
elif A == C:
    print(B)
elif B == C:
    print(A)

# 入力
A, B, C = map(int,input().split())

# 処理
if A == B:
    print(C)
elif A == C:
    print(B)
else:
    print(A)

a,b,c= map(int,input().split())
print(a^b^c)

x,y,z=map(int,input().split())
print(z if x == y else y if x == z else x)

a,b,c = map(int,input().split())

if a == c:
	print(b)
elif a == b:
	print(c)
elif b == c:
	print(a)

a,b,c = map(int,input().split())
if a == b:
    print(c)
if a == c:
    print(b)
if b == c:
    print(a)

ls = list(map(int,input().split()))
if ls[1] != ls[2] and ls[2] == ls[0]:
  print((ls[1]))
if ls[0] != ls[1] and ls[1] == ls[2]:
  print((ls[0]))
if ls[2] != ls[1] and ls[1] == ls[0]:
  print((ls[2]))


a, b, c = list(map(int, input().split()))

if a == b:
    print(c)
elif b == c:
    print(a)
else:
    print(b)


a = [int(x) for x in input().split()]
if a[0] == a[1]:
  print(a[2])
elif a[1] == a[2]:
  print(a[0])
else:
  print(a[1])

a,b,c = map(int,input().split())
if a==b:
    print(c)
elif a==c:
    print(b)
else:
    print(a)

A, B, C = map(int, input().split())

if A == B:
  print(C)
elif B == C:
  print(A)
else:
  print(B)

a,b,c=list(map(int,input().split()))
if a==b & b != c:
    print(c)
elif a==c & c !=b:
    print(b)
else:
    print(a)


A, B, C = map(int, input().split())

if A == B:
    print(C)
elif B == C:
    print(A)
elif C == A:
    print(B)

A, B, C = map(int, input().split())

if A == B:
    print(C)
elif A == C:
    print(B)
else:
    print(A)

a, b, c = map(int, input().split())
if a == b:
    print(c)
elif b == c:
    print(a)
else:
    print(b)

a,b,c=map(int,input().split())
if a==b:
  print(c)
elif a==c:
  print(b)
else:
  print(a)

a,b,c = map(int, input().split())
if a==b:
  print(c)
elif a==c:
  print(b)
else:
  print(a)

import sys, collections
input = lambda: sys.stdin.readline().rstrip() 
sys.setrecursionlimit(10**7)
INF = 10**20
def I(): return int(input())
def F(): return float(input())
def S(): return input()
def LI(): return [int(x) for x in input().split()]
def LI_(): return [int(x)-1 for x in input().split()]
def LF(): return [float(x) for x in input().split()]
def LS(): return input().split()

def resolve():
    ABC = LI()

    cnt = collections.Counter(ABC)
    ans = [k for k, v in list(cnt.items()) if v == 1]
    print((ans[0]))

def __starting_point():
    resolve()

__starting_point()

# 3 つの整数 A, B, Cが与えられます。
# A, B, C のうち 2つは 同じ整数であり、
# 残りの 1つだけ異なる整数です。
# 例えば、A = 5, B = 7, C = 5の場合、
# A, C の 2つは同じ整数であり、
# B は 1つだけ異なる整数です。
# 3つの整数のうち、1つだけ異なる整数を求めてください。

# 制約
# -100 ≦ A, B, C ≦ 100
# A, B, C は整数
# 入力は問題文の条件を満たす

# 標準入力から A, B, C の値を取得する
a, b, c = list(map(int, input().split()))

# 異なる整数を探して出力する
result = 0

if a == b:
    result = c
elif b == c:
    result = a
elif a == c:
    result = b
else:
    result = "Error"

print(result)


a, b, c = map(int, input().split())
if a == b:
  print(c)
elif b == c:
  print(a)
else:
  print(b)

a,b,c = input().split()

if(a==b):
    print(c)
elif(a == c):
    print(b)
else:
    print(a)

from collections import Counter

ABC = list(map(int, input().split()))

cnt = Counter(ABC)
values, counts = zip(*cnt.most_common(2))

print(values[1])

num = list(map(int, input().split()))
num = sorted(num)
print((num[0] if num[0] != num[1] else num[2]))


a,b,c = map(int,input().split())
if a==b:
    print(c)
elif b==c:
    print(a)
else:
    print(b)

a,b,c = map(int,input().split())
if a == c:
  print(b)
elif a == b:
  print(c)
else:
  print(a)

def mapt(fn, *args):
    return tuple(map(fn, *args))


def Input():
    return mapt(int, input().split(" "))


def main():
    abc = sorted(Input())
    if abc[0] == abc[1]:
        print(abc[2])
    else:
        print(abc[0])


main()

a,b,c=input().split()
if a==b:
    print(c)
elif a==c:
    print(b)
else:
    print(a)

# A - One out of Three

# 入力された整数A,B,Cのうち、2つは等しく1つは異なる
# 1つだけ異なる整数の値を出力する


A,B,C = list(map(int,input().split()))

if A == B:
    print(C)
elif A == C:
    print(B)
elif B == C:
    print(A)


a, b, c = list(map(int, input().split()))

if a == b:
    print(c)
elif b == c:
    print(a)
else:
    print(b)


a, b, c =map(int, input().split())


if a==b:
    print(c)
elif b ==c:
    print(a)
else:
    print(b)

# 3 つの整数 A , B , C が与えられます。 A , B , C のうち 2 つは 同じ整数であり、残りの 1 つだけ異なる整数です。
# 例えば、 A = 5 , B = 7 , C = 5 の場合、 A , C の 2 つは同じ整数であり、 B は 1 つだけ異なる整数です。
# 3 つの整数のうち、 1 つだけ異なる整数を求めてください。

A,B,C =map(int,input().split())

if A == B:
    print(C)

elif A == C:
    print(B)

elif B == C:
    print(A)

A, B, C = map(int, input().split())

if A == B:
    print(C)
elif B == C:
    print(A)
elif C == A:
    print(B)

a,b,c = map(int,input().split())

if a == b:
  print(c)
elif a == c:
  print(b)
else:
  print(a)

a,b,c=map(int,input().split())
if a==b:
  print(c)
elif a==c:
  print(b)
else:
  print(a)

A,B,C=list(map(int,input().split()))
if A==B:
    print(C)
elif B==C:
    print(A)
else:
    print(B)


#!/usr/bin/env python3

A, B, C = list(map(int, input().split()))
if A == B: print(C)
elif A == C: print(B)
else: print(A)


a, b, c = list(map(int, input().split()))

print((a ^ b ^ c))


A, B, C = map(int, input().split())
print(A if B == C else B if A == C else C)

a, b, c = map(int,input().split())

if int(a) == int(b):
  print(c)
if int(a) == int(c):
  print(b)
if int(b) == int(c):
  print(a)

a, b, c = map(int, input().split())
if a == b:
    print(c)
elif b == c:
    print(a)
else:
    print(b)

def main():
    import sys
    input = sys.stdin.readline
    sys.setrecursionlimit(10**7)
    from collections import Counter, deque
    from collections import defaultdict
    from itertools import combinations, permutations, accumulate, groupby, product
    from bisect import bisect_left,bisect_right
    from heapq import heapify, heappop, heappush
    from math import floor, ceil,pi,factorial
    from operator import itemgetter
    def I(): return int(input())
    def MI(): return list(map(int, input().split()))
    def LI(): return list(map(int, input().split()))
    def LI2(): return [int(input()) for i in range(n)]
    def MXI(): return [[LI()]for i in range(n)]
    def SI(): return input().rstrip()
    def printns(x): print(('\n'.join(x)))
    def printni(x): print(('\n'.join(list(map(str,x)))))
    inf = 10**17
    mod = 10**9 + 7
#main code here!
    a,b,c=MI()
    if a==b:
        print(c)
    elif b==c:
        print(a)
    else:
        print(b)
        
def __starting_point():
    main()

__starting_point()

lst = input().split()

for i in range(3):
   if lst.count(lst[i]) == 1:
      print(lst[i])
      break

a, b, c = map(int, input().split())
if a == b:
  print(c)
elif b == c:
  print(a)
else:
  print(b)

A,B,C=list(map(int,input().split()))
if A==B:
  print(C)
elif A==C:
  print(B)
elif B==C:
  print(A)


a,b,c = list(map(int,input().split()))

if a == b:
    print(c)
elif a == c:
    print(b) 
else:
    print(a)


A, B, C = map(int, input().split())
print(A ^ B ^ C)

l=sorted(map(int,input().split()))
print(sum(l)-l[1]*2)

#   AtCoder abc075 a
#   ストレッチ課題

#   入力
a, b, c =list(map(int, input().split()))

#   判定
if a == b:
    print(c)
elif a == c:
    print(b)
else:
    print(a)


A, B, C = map(int, input().split())

if A == B:
    print(C)
elif B == C:
    print(A)
elif A == C:
    print(B)

A,B,C = list(map(int,input().split()))
if A==B:
    print(C)
elif A == C:
    print(B)
elif B == C:
    print(A)


A, B, C = map(int, input().split())

if A == B:
    print(C)
elif B == C:
    print(A)
else:
    print(B)

a,b,c = sorted(map(int,input().split()))
print( c if a == b else a)

a,b,c=map(int,input().split())
if a==c:
    print(b)
elif a==b:
    print(c)
else:
    print(a)

l = list(map(int, input().split()))
for ll in l:
    if l.count(ll)==1:
        print(ll)
        break

def iroha():
    a,b,c = list(map(int, input().split()))
    if a == b:
        print(c)
    elif a == c:
        print(b)
    else:
        print(a)



def __starting_point():
    iroha()


__starting_point()

a,b,c=list(map(int,input().split()))

if a==b:
    ans=c
elif b==c:
    ans=a
else:
    ans=b
print(ans)


a, b, c = map(int, input().split())
if a == b:
    print(c)
elif c == b:
    print(a)
else:
    print(b)

# 075_a
A,B,C=list(map(int,input().split()))
if (-100<=A and A<=100) and (-100<=B and B<=100) and (-100<=C and C<=100):
    if A==B:
        print(C)
    elif B==C:
        print(A)
    elif C==A:
        print(B)


s=list(map(int,input().split()))
i=set(s)
print(sum(i)-(sum(s)-sum(i)))

a,b,c=map(int,input().split())
if a==b:
  print(c)
elif a==c:
  print(b)
else:
  print(a)

a, b, c = map(int, input().split())

if a == b:
    print(c)
elif a == c:
    print(b)
else:
    print(a)

a,b,c=map(int,input().split())
print(a if b==c else b if a==c else c)

a=list(map(int,input().split()))
a.sort()

if a[0]==a[1]:
  print(a[2])
else:
  print(a[0])

a, b, c=map(int,input().split())
if a==b:
  print(c)
elif c==b:
  print(a)
else:
  print(b)