#include <bits/stdc++.h>
using namespace std;
const long long mxn = 1000 * 1000 * 1000 + 7;
int main() {
  ios::sync_with_stdio(false);
  long long n, ans = 0;
  vector<long long> odds;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int m;
    cin >> m;
    if (m % 2 == 0)
      ans += m;
    else
      odds.push_back(m);
  }
  sort(odds.begin(), odds.end());
  for (int i = 0; i < odds.size(); i++) ans += odds[i];
  if (odds.size() % 2 == 1) ans -= odds[0];
  cout << ans;
  return 0;
}
