#include <bits/stdc++.h>
using namespace std;
long long sum;
int x, sz, i, n;
int a[101000];
int main() {
  cin >> n;
  for (i = 1; i <= n; i++) {
    cin >> x;
    if (x % 2 == 0)
      sum += x;
    else {
      a[++sz] = x;
    }
  }
  sort(a + 1, a + sz + 1);
  for (i = sz; i >= 2; i -= 2) {
    sum += a[i] + a[i - 1];
  }
  cout << sum;
  return 0;
}
