#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n];
  for (int i = 0; i < n; i++) scanf("%d", &a[i]);
  sort(a, a + n, greater<int>());
  int odd = 0, prevOdd;
  long long sum = 0;
  for (int i = 0; i < n; i++) {
    if (a[i] % 2) {
      odd++;
      prevOdd = a[i];
    }
    sum += a[i];
  }
  if (odd % 2) sum -= prevOdd;
  cout << sum << endl;
  return 0;
}
