#include <bits/stdc++.h>
using namespace std;
mt19937_64 rang(
    chrono::high_resolution_clock::now().time_since_epoch().count());
int rng(int lim) {
  uniform_int_distribution<int> uid(0, lim - 1);
  return uid(rang);
}
void solution() {
  int n;
  cin >> n;
  long long int ans = 0;
  long long int mod = 2;
  long long int fans = INT_MIN;
  long long men = INT_MAX;
  for (int i = 0; i < n; i++) {
    long long x;
    cin >> x;
    ans = ans + x;
    if (x % 2 == 1) {
      men = min(men, x);
    }
  }
  if (ans % 2 == 0) {
    cout << ans;
  } else {
    cout << ans - men << endl;
  }
}
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  srand(chrono::high_resolution_clock::now().time_since_epoch().count());
  int test = 1;
  while (test--) {
    solution();
  }
  return 0;
}
