#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { string s, t, u; cin>>s>>t>>u; if (s==t||s==u) cout<<s<<endl; else cout<<t<<endl; return 0; }