#include <bits/stdc++.h>
using namespace std;
long long a[202020];
int main() {
  long long n;
  cin >> n;
  long long sum = 0;
  long long cur = int(1e9 + 1);
  for (long long i = 1; i <= n; i++) {
    long long x;
    cin >> x;
    if (x % 2 == 1) cur = min(cur, x);
    sum += x;
  }
  if (sum % 2 == 0)
    cout << sum;
  else
    cout << sum - cur;
  return 0;
}
