#include <bits/stdc++.h>
using namespace std;
long long x, n, minn = 1e9 + 7, s = 0;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> x;
    s += x;
    if (x < minn && x % 2 == 1) minn = x;
  }
  if (s % 2 == 0) {
    cout << (long long)s;
    return 0;
  } else
    cout << (long long)(s - minn);
  return 0;
}
