#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, i, sum = 0, x, temp;
  cin >> n;
  vector<long long> v, v1;
  for (i = 0; i < n; i++) {
    cin >> x;
    v.push_back(x);
    sum = sum + v[i];
  }
  sort(v.rbegin(), v.rend());
  temp = sum;
  if (sum % 2 == 0)
    cout << sum << endl;
  else {
    for (i = n - 1; i >= 0; i--) {
      sum = temp - v[i];
      if (sum % 2 == 0) {
        cout << sum << endl;
        break;
      }
    }
  }
  return 0;
}
