#include <bits/stdc++.h>
using namespace std;
int main() {
  long long num, n;
  long long term = INT_MAX;
  vector<long long> b;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> num;
    b.push_back(num);
  }
  long long ans = 0;
  for (int i = 0; i < n; i++) ans += b[i];
  if (ans % 2 == 0)
    cout << ans << endl;
  else {
    for (int i = 0; i < n; i++) {
      if (b[i] % 2 != 0) {
        term = min(term, b[i]);
      }
    }
    cout << ans - term << endl;
  }
  return 0;
}
