#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  long x;
  int odd_count = 0;
  int even_count = 0;
  long odd_min = 1000000000;
  unsigned long long odd_sum = 0;
  unsigned long long even_sum = 0;
  while (N--) {
    cin >> x;
    if (x & 0x1) {
      odd_sum += x;
      odd_count++;
      if (odd_min > x) odd_min = x;
    } else {
      even_sum += x;
      even_count++;
    }
  }
  if (odd_count & 0x1) {
    odd_sum -= odd_min;
  }
  cout << odd_sum + even_sum << endl;
  return 0;
}
