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