d = list(map(int, input().split()))
print(d[0] ^ d[1] ^ d[2])