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