#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, x, s = 0, h = 0, mn = 1e18;
  cin >> n;
  while (n--) {
    cin >> x;
    s += x;
    if (x % 2 != 0) {
      h++;
      mn = min(mn, x);
    }
  }
  if (h % 2 != 0) {
    s -= mn;
  }
  cout << s << endl;
  return 0;
}
