#include <bits/stdc++.h>
using namespace std;
vector<long long int> odds;
int main() {
  int n;
  scanf("%d", &n);
  long long int sum = 0;
  int length_odds = 0;
  for (int x = 0; x < n; x++) {
    long long int num;
    scanf("%lld", &num);
    if (num % 2 == 0) {
      sum += num;
    } else {
      odds.push_back(num);
      length_odds++;
    }
  }
  sort(odds.begin(), odds.end());
  reverse(odds.begin(), odds.end());
  for (int x = 1; x < length_odds;) {
    sum += odds[0] + odds[1];
    odds.erase(odds.begin());
    odds.erase(odds.begin());
    x += 2;
  }
  printf("%lld", sum);
  return 0;
}
