a, b, c = map(int, input().split()) if a == b == c: print(a) elif a == b: print(c) elif b == c: print(a) elif c == a: print(b) else: print(0 + 1 + 2 + 3 - a - b - c)