// Allah is the best planner.He knows everything
#include<bits/stdc++.h>
using namespace std;
//ordered set
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
typedef __gnu_pbds::tree<int, __gnu_pbds::null_type,
less<int>, __gnu_pbds::rb_tree_tag, __gnu_pbds::tree_order_statistics_node_update> ordered_set;
#define pb push_back
#define fast() ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define en "\n"
typedef long long int ll;
typedef unsigned long long int ull;
int main()
{
fast();
int t=1;
// cin>>t;
while(t--)
{
ll n=3;
vector<ll>arr(3);
map<ll,ll>mp;
for(int i=0;i<n;i++)
{
cin>>arr[i];
mp[arr[i]%2]++;
}
for(int i=0;i<n;i++)
{
if(mp[arr[i]%2]==1)
{
cout<<arr[i]<<en;
break;
}
}
}
return 0;
}
//Not a good Coder->Rifat