#include <bits/stdc++.h>
using namespace std;
long long a[3], p[2];
long long ans = 0, sum;
int main() {
  for (int i = 0; i < 3; ++i) {
    cin >> a[i];
    ans += a[i];
    p[a[i] % 2]++;
  }
  sum = ans;
  for (int i = 0; i < 3; ++i) {
    if ((p[0] == 0 || p[1] == 0) || p[a[i] % 2] == 1) {
      long long h = a[i] + min(a[(i + 1) % 3], a[(i + 2) % 3]);
      long long t = sum - h;
      ans = min(ans, t);
    }
  }
  cout << ans << endl;
  return 0;
}
