Problem:


Score : 100 points

Problem Statement

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 1

5 7 5

Sample Output 1

7

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

Sample Input 2

1 1 7

Sample Output 2

7

In this case, C is the one we seek.

Sample Input 3

-100 100 100

Sample Output 3

-100



Sample input:
5 7 5


Sample output:
7

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import collections

a = list(map(int, input().split()))
b = collections.Counter(a)
minimum = min(list(dict(b).items()), key=lambda x:x[1])[0]
print(minimum)

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = list(map(int, input().split()))

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

Submission status: Accepted

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

def main():
    if A == B:
        ans = C
    elif A == C:
        ans = B
    else:
        ans = A
    print(ans)

if __name__ in "__main__":
    main()

Submission status: Accepted

Solution code:
import sys


def main():

    # Get Args
    args = _input_args()  # get arguments as an array from console/script parameters.

    # Call main Logic
    result = _main(args)

    # Output a result in a correct way.
    _output_result(result)


def _main(args):
    """Write Main Logic here for the contest.

    :param args: arguments
    :type args: list
    :return: result
    :rtype: depends on your logic.
    """
    hash = HashMap()

    for value in args:
        hash.add(value)

    # Return something.
    return hash.find_unique()


class HashMap(object):
    def __init__(self):
        self.map = {}

    def add(self, value):
        if self.map.get(value) is None:
            self.map[value] = [value]
        else:
            self.map[value].append(value)

    def find_unique(self):
        for value, array in self.map.items():
            if len(array) == 1:
                return array[0]


def _input_args():

    arguments = _input().split()  # ptn2: get args from 1 line console prompt with space separated.

    return arguments  # This will be array.


def _input():
    # If Subject requires interactive input, use this and patch mock in unittest.
    return input()  # Change if necessary.


def _output_result(result):

    print('{}'.format(str(result)))  # Same as above, but more versatile.


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
print eval(raw_input().replace(' ', '^'))

Submission status: Accepted

Solution code:
X = list(map(int, input().split()))

X.sort()
if X[0] == X[1]:
    print(X[2])
else:
    print(X[0])

Submission status: Accepted

Solution code:
a=input().split()
A=int(a[0])
B=int(a[1])
C=int(a[2])
if(A==B):
  print(C)
if(A==C):
  print(B)
if(B==C):
  print(A)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
x, y, z = map(int, input().split())
print(x ^ y ^ z)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
input_lines = list(input().split(" "))
if input_lines[0] == input_lines[1]:
    print(input_lines[2])
elif input_lines[0] == input_lines[2]:
    print(input_lines[1])
else:
    print(input_lines[0])

Submission status: Accepted

Solution code:
numbers = list(map(int, input().split()))
for i in numbers:
    if numbers.count(i) == 1:
        print(i)

Submission status: Accepted

Solution code:
i = input().split()
if(i[0] == i[1]):
    print(i[2])
elif(i[0] == i[2]):
    print(i[1])
else:
    print(i[0])

Submission status: Accepted

Solution code:
a=input().split()
if a[0]==a[1]:print(a[2])
elif a[1]==a[2]:print(a[0])  
else:print(a[1])

Submission status: Accepted

Solution code:
list_ = sorted(map(int, input().split()))
if list_[0] == list_[1]:
    print(list_[2])
else:
    print(list_[0])

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
A,B,C = map(int, raw_input().split())
if A == B:
    print(C)
if A == C:
    print(B)
if B == C:
    print(A)

Submission status: Accepted

Solution code:
#!/usr/bin/python

# AtCoder Beginner Contest 075
# A - One out of Three

from sys import stdin

def solve(A, B, C):
  if A == B: return C
  if A == C: return B
  if B == C: return A
  raise

def splitToInt(line):
  words = line.strip().split()
  return [int(w) for w in words]

A, B, C = splitToInt(stdin.readline())
print(solve(A, B, C))

Submission status: Accepted

Solution code:
intarr = input().split()

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

Submission status: Accepted

Solution code:
def main():
    a = list(map(int, input().split()))
    a_set = list(set(a))
    c = 0
    for x in range(3):
        if a_set[0] == a[x]:
            c += 1
    if c == 2:
        print(a_set[1])
    else:
        print(a_set[0])


if __name__ == "__main__":
    main()

Submission status: Accepted

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

print(A ^ B ^ C)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys, copy, math, itertools
from copy import *
from collections import deque
import numpy as np
from heapq import *
from bisect import *
import scipy as sp
from scipy import special, signal, ifft
from scipy.fftpack import fft
#from scipy.optimize import linprog		# AtCoderでは使えず

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

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys, copy, math, itertools
from copy import *
from collections import deque
import numpy as np
from heapq import *
from bisect import *
import scipy as sp
#from scipy.optimize import linprog
from scipy import ceil, ifft
from scipy.fftpack import fft

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

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys, copy, math, itertools
from copy import *
from collections import deque
import numpy as np
from heapq import *
from bisect import *
import scipy as sp

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

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import numpy as np
from numpy import *
from copy import *

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

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

Submission status: Accepted

Solution code:
ary =list( map(int, input().split()))
if ary[0] == ary[1]:
    print(ary[2])
elif ary[0] == ary[2]:
    print(ary[1])
else:
    print(ary[0])

Submission status: Accepted

Solution code:
num = input().split()
if int(num[0]) == int(num[1]):
    print(num[2])
elif int(num[0]) == int(num[2]):
    print(num[1])
else:
    print(num[0])

Submission status: Accepted

Solution code:
# -*- coding utf-8 -*-
 
a,b,c = map(int, input().split()) 
if a == b:
    d = c
elif a == c:
    d = b
elif b == b:
    d = a
print(d)

Submission status: Accepted

Solution code:
rng1 = -100
rng2 = 101
#print(input().split())
inp = [int(i) for i in input().split()]
#print(inp)
x, y, z = [inp[i] for i in range(len(inp))]
#print("x={},y={},z={}".format(x,y,z))

def dif1(x, y ,z):
    if not isinstance(x, int) or not isinstance(y, int) or not isinstance(z, int):
        return False
    elif x not in range(rng1, rng2) or y not in range(rng1, rng2)or z not in range(rng1, rng2):
        return False
    else:
        if y == z:
            return x
        if z == x:
            return y
        if x == y:
            return z
Ans = dif1(x,y,z)
print(Ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# (c) midandfeed
q = [int(x) for x in input().split()]
a, b, c = [int(x) for x in q]
while( (a+b) != (a+c) ):
	q = q[1:] + [q[0]]
	a, b, c = [int(x) for x in q]
print(a)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c = map(int, raw_input().split(" "))
if a == b:
    print c
elif b == c:
    print a
else: print b

Submission status: Accepted

Solution code:
input_data = raw_input()
data = input_data.split(' ')
if data[0] == data[1]:
  print data[2]
elif data[0] == data[2]:
  print data[1]
else:
  print data[0]

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = list(map(int, input().split()))
a.sort(key=int)
print(a[0]^a[1]^a[2])

Submission status: Accepted

Solution code:
a = list(map(int, input().split()))
a.sort(key=int)
if a[0] == a[1]:
  print(a[2])
else:
  print(a[0])

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

num = input().split()
for i in range(3):
    if num[i] == num[(i + 1) % 3]:
        print(num[(i + 2) % 3])

Submission status: Accepted

Solution code:
input = input()
inputs = input.split()

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

Submission status: Accepted

Solution code:
a, b, c = (int(i) for i in input().split())
 
if a==b:
  print(c)
elif b==c:
  print(a)
elif c==a:
  print(b)

Submission status: Accepted

Solution code:
a, b, c = (int(i) for i in input().split())

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

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split(' '))

#A-B B-C C-A 同じもの以外を出力

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

Submission status: Accepted

Solution code:
A = input().split()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input().split()

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

Submission status: Accepted

Solution code:
s=input().split()
if int(s[0])==int(s[1]):
    print(s[2])
elif int(s[0])==int(s[2]):
    print(s[1])
else:
    print(s[0])

Submission status: Accepted

Solution code:
x = input()
x = x.split()

if x[0] == x[1]:
    print(x[2])
else:
    x.remove(x[2])
    print(x[0])

Submission status: Accepted

Solution code:
def main(argv):
    for i in range(len(argv)):
        check = sum(argv[i] == argv[j] for j in range(len(argv)))
        if check != len(argv)-1:
            return argv[i]


argv = list(map(int, input().split()))
print(main(argv))

Submission status: Accepted

Solution code:
# http://abc075.contest.atcoder.jp/tasks/abc075_a

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

Submission status: Accepted

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

if a == b:
    d = c
elif a == c:
    d = b
else:
    d = a

print(d)

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
ab = a-b
bc = b-c
ca = c-a
if ab == 0:
 print(c)
if bc == 0:
 print(a)
if ca == 0:
 print(b)

Submission status: Accepted

Solution code:
import sys
a,b,c=sys.stdin.readline().split()
a=int(a)
b=int(b)
c=int(c)
if a==b:
    print(c)
elif a==c:
    print(b)
else:
    print(a)

Submission status: Accepted

Solution code:
a = [int(i) for i in input().split()]

for num1 in a:
    c = 0
    for num2 in a:
        if num1 == num2:
            c += 1
    if c == 1:
        print(num1)

Submission status: Accepted

Solution code:
import sys
from collections import defaultdict


def solve(line):
    split = line.split()
    count = defaultdict(int)
    for s in split:
        count[s] += 1

    for k, v in count.items():
        if v == 1:
            return k


if __name__ == '__main__':
    print(solve(sys.stdin.readline()))

Submission status: Accepted

Solution code:
ls = list(map(int, input().split()))
[print(i) for i in filter(lambda x: ls.count(x) == 1, ls)]

Submission status: Accepted

Solution code:
# coding: utf-8
a,b,c=map(int,input().split())
if a==b:
    print(c)
elif a==c:
    print(b)
else:
    print(a)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/python3

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

h = {}
for i in n:
    if i not in h:
        h[i] = 0
    h[i] += 1

for i in h.keys():
    if h[i] < 2:
        print(i)
        exit()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from collections import defaultdict


def main():
    d = defaultdict(lambda: 0)
    for i in input().split():
        d[int(i)] += 1
    d = {v:k for k, v in d.items()}
    print(d[1])
    

if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#ABC075A

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

Submission status: Accepted

Solution code:
a,b,c=map(int,raw_input().split())
print a^b^c

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import traceback


def main():
    _list = map(int,raw_input().split())
    for val in _list:
        if _list.count(val) == 1:
            return val

print main()

Submission status: Accepted

Solution code:
#!/usr/bin/env python

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

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

Submission status: Accepted

Solution code:
A = list(map(int, input().split()))
print(A[0]^A[1]^A[2])

Submission status: Accepted

Solution code:
a,b,c = map(int, input().split(" "))

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

Submission status: Accepted

Solution code:
a, b, c = input().split(" ")

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

Submission status: Accepted

Solution code:
A, B, C = sorted(map(int, input().split()))
print(A if A != B else C)

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-
a = list(map(int, input().split()))
d = set()
e = [ tmp for tmp in a if tmp in d or d.add(tmp) ]
for tmp in a:
    if tmp not in e:
        print(tmp)
        break

Submission status: Accepted

Solution code:
# coding: utf-8
a=list(map(int,input().split()))
for n in a:
    if a.count(n)==1:
        print(n)
        break

Submission status: Accepted

Solution code:
def solution():
	x,y,z = [int(a) for a in input().split(' ')]
	if x == y:
		print(z)
	elif x == z:
		print(y)
	else:
		print(x)

solution()

Submission status: Accepted

Solution code:
import sys
from collections import Counter

# sys.stdin = open('a1.in')


def read_int_list():
    return list(map(int, input().split()))


def read_str_list():
    return input().split()


def read_int():
    return int(input())


def read_str():
    return input()


def main():
    n = read_int_list()
    c = Counter(n)
    for i in c:
        if c[i] == 1:
            print(i)


main()

Submission status: Accepted

Solution code:
#!/usr/bin/env python
#-*- coding: utf-8 -*-

A, B, C = [int (i) for i in raw_input ().split ()]
print A ^ B ^ C

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input().split()
if n[0] == n[1]:
  print(n[2])
elif n[0] == n[2]:
  print(n[1])
else:
  print(n[0])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

import sys
from collections import Counter


def main():
    for line in sys.stdin:
        data = line.rstrip().split(" ")
        counter = Counter(data)
        print(list(counter.most_common())[-1][0])


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
a = input().split()
if a[0] == a[1]:print(a[2])
if a[1] == a[2]:print(a[0])
if a[2] == a[0]:print(a[1])

Submission status: Accepted

Solution code:
nums = map(int, input().split())
d = {}
for n in nums:
  d.setdefault(n, 0)
  d[n] += 1
print(list(d.keys())[list(d.values()).index(1)])

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a = list(map(int, input().split()))
if a[0] == a[1]:
    print(a[2])
elif a[0] == a[2]:
    print(a[1])
elif a[1] == a[2]:
    print(a[0])

Submission status: Accepted

Solution code:
a,b,c=input().strip().split(' ')
if a==b:
  print(c)
elif a==c:
  print(b)
elif b==c:
  print(a)

Submission status: Accepted

Solution code:
a=list(input().split())
for i in range(3):
  if a.count(a[i])==1:
    b=a[i]
print(b)

Submission status: Accepted

Solution code:
l = list(map(int, input().split()))
if l[0]==l[1]:
	print(l[2])
elif l[0] ==l[2]:
	print(l[1])
elif l[1] ==l[2]:
	print(l[0])

Submission status: Accepted

Solution code:
A, B, C = input().split()
if A == B:
    print(C)
elif A == C:
    print(B)
else:
    print(A)

Submission status: Accepted

Solution code:
x,y,z=[int(i) for i in input().split()]

if x == y:
	print (z)
elif y == z:
	print (x)
else:
	print (y)

Submission status: Accepted

Solution code:
import sys

l = list(map(int, sys.stdin.readline().strip().split(" ")))

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

Submission status: Accepted

Solution code:
# coding: utf-8

a = input().split()

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

Submission status: Accepted

Solution code:
a = raw_input().split()

if a[0] == a[1]:
 print a[2]
elif a[0] == a[2]:
 print a[1]
else:
 print a[0]

Submission status: Accepted

Solution code:
def i1():
 return int(input())
def i2():
 return [int(i) for i in input().split()]
x=i2()
if x[0]==x[1]:
  print(x[2])
if x[0]==x[2]:
  print(x[1])
if x[2]==x[1]:
  print(x[0])

Submission status: Accepted

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

if A == B:
  Ans = C
else:
  if A == C:
    Ans = B
  else:
    Ans = A

print(Ans)

Submission status: Accepted

Solution code:
# coding: utf-8
A, B, C = map(int, raw_input().split(' '))

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

Submission status: Accepted

Solution code:
a, b, c = map(int, raw_input().split())

if b == c:
	ans = a
elif a == c:
	ans = b
else:
	ans = c

print str(ans)

Submission status: Accepted

Solution code:
nums=input().split()
for i in range(3):
    nums[i]=int(nums[i])

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

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

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-


l = map(int, raw_input().split())
A = l[0]
B = l[1]
C = l[2]

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Here your code !
a,b,c=[int(x) for x in input().split()]
if a==b:
    print(c)
elif b==c:
    print(a)
else:
    print(b)

Submission status: Accepted

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

print(({A} ^ {B} ^ {C}).pop())

Submission status: Accepted

Solution code:
line = input().rstrip().split(' ')
A = line[0]
B = line[1]
C = line[2]

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

if a == b:
  output = c
elif a == c:
  output =  b
else:
  output = a

print(output)

Submission status: Accepted

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
num = input().split()
num = [int(x) for x in num]

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

Submission status: Accepted

Solution code:
nums = [ int(i) for i in input().split()]
nums.sort()
if nums[0] == nums[1]:
    print(nums[2])
else:
    print(nums[0])

Submission status: Accepted

Solution code:
a,b,c=map(int,raw_input().split(' '))

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

Submission status: Accepted

Solution code:
A,B,C = map(int,input().split())
if A==B:
    print(C)
if A==C:
    print(B)
if B==C:
    print(A)

Submission status: Accepted

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from collections import Counter
nums = [int(i) for i in input().split()]
counter = Counter(nums)
for key, value in counter.items():
    if value == 1:
        print(key)

Submission status: Accepted

Solution code:
l = list(map(int,input().split()))
if l[0]==l[1]:
    print(l[2])
elif l[1]==l[2]:
    print(l[0])
else:
    print(l[1])

Submission status: Accepted

Solution code:
from collections import Counter
N = list(map(int,input().split()))
c = Counter(N)


for k,v in c.items():
     if v == 1:
          print(k)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a, b, c = input().split(" ")
if a == b and a != c:
    print(str(c))
elif a == c and a != b:
    print(str(b))
elif b == c and b != a:
    print(str(a))

Submission status: Accepted

Solution code:
A, B, C = (input()).split()
if A == B:
    print(C)
elif B == C:
    print(A)
elif C == A:
    print(B)

Submission status: Accepted

Solution code:
x = input()
y = x.split(" ")
if y[0] == y[1]:
  print(y[2])
elif y[1] == y[2]:
  print(y[0])
elif y[2] == y[0]:
  print(y[1])

Submission status: Accepted

Solution code:
from collections import defaultdict

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

d = defaultdict(lambda:0)

for i in n:
    d[i] += 1
     
for i in n:
    if d[i] == 1:
        print(i)

Submission status: Accepted

Solution code:
from sys import stdin
a,b,c = map(int,stdin.readline().split())
print a^b^c

Submission status: Accepted

Solution code:
a = [int(i) for i in input().split()]
a.sort()
print(a[2] if a[0] == a[1] else a[0])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from collections import Counter

num = list(map(int,input().split()))
c = Counter(num)

print(c.most_common()[1][0])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = list(map(int, input().split()))

if x[0]==x[1]:
    print(x[2])
    quit()
elif x[1]==x[2]:
    print(x[0])
    quit()

print(x[1])

quit()

Submission status: Accepted

Solution code:
# One out of Three

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

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

Submission status: Accepted

Solution code:
l = [int(x) for x in raw_input().split()]
for x in set(l):
	if l.count(x) == 1:
		print x

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b, c = map(int, raw_input().split())
if a == b:
    print c
else:
    if a == c:
        print b
    else:
        print a

Submission status: Accepted

Solution code:
nums = [int(x) for x in input().split()]

nums.sort()

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

Submission status: Accepted

Solution code:
def main():
    A, B, C = map(int, input().split())

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

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
def main():
    a, b, c = map(int, raw_input().split(" "))

    if a == b:
        print(c)
    elif a == c:
        print(b)
    else:
        print(a)
        
if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
(a, b, c) = input().split(" ")

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

Submission status: Accepted

Solution code:
A, B, C = input().split(" ")

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input().split(" ")

A = int(S[0])
B = int(S[1])
C = int(S[2])
if A == B:
    print (C)
elif B == C:
    print(A)
else:
    print(B)

Submission status: Accepted

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

Submission status: Accepted

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

if A==C:
    print(B)

elif A==B:
    print(C)

else:
    print(A)

Submission status: Accepted

Solution code:
# def makelist(n, m):
#     return [[0 for i in range(m)] for j in range(n)]

# n = int(input())
# a, b = map(int, input().split())
# s = input()


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

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

Submission status: Accepted

Solution code:

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

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

Submission status: Accepted

Solution code:
a, b, c = input().split()

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

Submission status: Accepted

Solution code:
def solve():
    l = list(map(int, input().split(" ")))
    count_dict = {}

    for element in l:
        if element not in count_dict:
            count_dict[element] = 1
        else:
            count_dict[element] += 1

    for key, val in count_dict.items():
        if val == 1:
            print(key)
            break
            

solve()

Submission status: Accepted

Solution code:
from sys import stdin, stdout
def readLine_int_list():return list(map(int, stdin.readline().split()))


def main():
	a=sorted(readLine_int_list())
	print(a[0] if a.count(a[0]) == 1 else (a[2]))
	
	
if __name__ == "__main__":
    main()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
inputs=input().split()
A = int(inputs[0])
B = int(inputs[1])
C = int(inputs[2])

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

Submission status: Accepted

Solution code:
num = input().split()
if num[0]==num[1]:
    print(int(num[2]))
elif num[0]==num[2]:
    print(int(num[1]))
else:
    print(int(num[0]))

Submission status: Accepted

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

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