#include <bits/stdc++.h>
using namespace std;
#define fast ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define ll long long
int main()
{
fast
/*ll t;
cin>>t;
while(t--) solve*/
int x, y, z;
int ze = 0, ne = 0;
cin>>x>>y>>z;
if (x==0)ze++;
if (y==0)ze++;
if (z==0)ze++;
if (x<0)ne++;
if (y<0)ne++;
if (z<0)ne++;
if (ze!=0){
if (ze==1){
if (x==0)cout<<x;
else if (y==0) cout<<y;
else cout<<z;
}
else if (ze==2){
if (x>0 or x<0)cout<<x;
else if (y>0 or y<0) cout<<y;
else cout<<z;
}
}
else if (ne!=0){
if (ne==1){
if (x<0)cout<<x;
else if (y<0) cout<<y;
else cout<<z;
}
else if (ne==2){
if (x==0 or x>0)cout<<x;
else if (y==0 or y>0) cout<<y;
else cout<<z;
}
}
else {
vector<int> o;
vector<int> e;
if (x%2==0) e.push_back(x);
else o.push_back(x);
if (y%2==0) e.push_back(y);
else o.push_back(y);
if (z%2==0) e.push_back(z);
else o.push_back(z);
if(o.size() == 1) cout<<o[0];
else cout<<e[0];
}
return 0;
}