#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, y, sum = 0;
  cin >> n;
  vector<long long> x;
  for (int i = 0; i < n; i++) {
    cin >> y;
    x.push_back(y);
    sum += x[i];
  }
  if (sum % 2 == 0) {
    cout << sum;
    return 0;
  }
  sort(x.begin(), x.end());
  for (int i = 0; i < x.size(); i++) {
    if (x[i] % 2 != 0) {
      sum -= x[i];
      if (sum % 2 == 0) {
        cout << sum;
        break;
      }
    }
  }
  return 0;
}
