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