#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, s = 0, i, p = 1, a[100000], b[100000];
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> a[i];
    s += a[i];
  }
  if (s % 2 == 0) {
    cout << s << endl;
  } else {
    sort(a, a + n);
    for (i = 0; i < n; i++) {
      if (a[i] % 2 != 0) {
        s -= a[i];
        break;
      }
    }
    cout << s << endl;
  }
}
