#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int h, n[100000], small = 999999999;
  long long int i, j, count = 0;
  long long int sum = 0;
  cin >> h;
  for (i = 0; i < h; i++) {
    cin >> n[i];
    sum = sum + n[i];
    if (n[i] % 2 != 0) {
      if (small >= n[i]) {
        small = n[i];
      }
      count++;
    }
  }
  if (count % 2 == 0) {
    cout << sum;
  } else {
    cout << sum - small;
  }
  return 0;
}
