#include <bits/stdc++.h>
using namespace std;
const int mod = 1000000007;
const int inf = 1001001001;
int n;
long long s, m, k, a[1111111];
int main() {
  ios_base::sync_with_stdio(0);
  cin >> n;
  m = 2e9;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] % 2 == 1) {
      k++;
      m = min(m, a[i]);
    }
    s += a[i];
  }
  if (k % 2 == 0)
    cout << s;
  else
    cout << s - m;
  return 0;
}
