def main(): a = input() b = input() c = input() if (a == b): print(a) elif (a == c): print(a) elif (b == c): print(b) main()