#include <bits/stdc++.h>
using namespace std;
int n, odd_count, mini;
long long total, odd_total;
int main() {
  cin >> n;
  mini = 2000000000;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a % 2 == 0) {
      total += a;
      continue;
    } else {
      if (a < mini) {
        mini = a;
      }
      odd_total += a;
      odd_count += 1;
    }
  }
  if (odd_count % 2 == 0) {
    cout << total + odd_total;
  } else {
    cout << total + odd_total - mini;
  }
  return 0;
}
