#include <bits/stdc++.h>
using namespace std;
long long n, a[100005], s, mn = 99999999999999;
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
    s += a[i];
    if (a[i] < mn && a[i] % 2 != 0) mn = a[i];
  }
  if (s % 2 != 0) s -= mn;
  cout << s;
}
