#include<bits/stdc++.h>
#include <climits>
using namespace std;
using ll = long long;
using ull = unsigned long long;
using ui = unsigned int;
const ll INF = 1e17+7;
/*
// _ __ ___ __ __ _______ _______
// / | / / / _ \ \ \__\ \\__ __\\ __ \
// / |/ / / /_\ \ \ ___ \ \ \ \ \ \ \
// / /| / / ____ \ \ \ \ \ _\ \___\ \/ /
// /_/ |_/ /_/ \__\ \_\ \_\\______\\___/
ID: mdnahidibnaharun
LANG: C++
TASK: practice
*/
void solve(){
ll a[3],b=0,c=0,a1,a2;
for(auto &x:a){
cin>>x;
if(x%2==0){b++;a1=x;}
else {c++;a2=x;}
}
if(b==1)cout<<a1;
else a2;
}
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
// int t;cin>>t;
// while(t--){
solve();
// cout<<endl;
// }
return 0;
}