#include <bits/stdc++.h>
const long double EPS = 1e-6;
const long double PI = acos(-1);
const int MOD = 1e9 + 7;
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  int n;
  cin >> n;
  int* a = new int[n];
  long long sum = 0;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    sum += a[i];
  }
  sort(a, a + n);
  for (int i = 0; i < n && sum % 2 == 1; i++) {
    if (a[i] % 2 == 1) sum -= a[i];
  }
  cout << sum << endl;
}
