#include using namespace std; int main() { string A, B, C; cin >> A >> B >> C; cout << ((A == B || A == C) ? A : B) << "\n"; }