*a, = map(int,input().split()) c = 11 for x in a: c ^= x print(c)