#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, i, k, sum = 0, sum_odd = 0, count = 0, min = 999999999;
  cin >> n;
  for (i = 1; i <= n; i++) {
    cin >> k;
    if (k % 2 == 0) {
      sum += k;
    } else {
      sum_odd += k;
      if (k < min) min = k;
      count++;
    }
  }
  if (count % 2 == 0)
    sum += sum_odd;
  else
    sum += sum_odd - min;
  cout << sum;
  return 0;
}
