#include <bits/stdc++.h>
using namespace std;
struct P {
  int a;
  long long num;
} L[1000000];
bool cmd(P x, P y) { return x.num < y.num; }
int main() {
  int n;
  long long sum = 0;
  int j;
  int i;
  int ans1 = 0, ans2 = 0;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> L[i].num;
    if (L[i].num % 2 == 0) {
      L[i].a = 0;
    } else {
      L[i].a = 1;
    }
    sum += L[i].num;
  }
  if (sum % 2 == 0) {
    cout << sum << endl;
    return 0;
  } else {
    sort(L, L + n, cmd);
    for (j = 0; j < n; j++) {
      if (L[j].num % 2 == 1) {
        sum = sum - L[j].num;
        break;
      }
    }
    cout << sum << endl;
  }
  return 0;
}
