#include <bits/stdc++.h>
using namespace std;
int main() {
  unsigned long long x, y, sum = 0, sum1 = 0, cont = 0, min = 0;
  cin >> x;
  unsigned long long odd[x];
  for (int i = 0; i < x; i++) {
    cin >> y;
    if (y % 2 == 0) {
      sum += y;
    } else {
      odd[cont] = y;
      cont++;
    }
  }
  for (int i = 0; i < cont; i++) {
    sum1 += odd[i];
  }
  if (cont % 2 != 0) {
    min = odd[0];
    for (int i = 1; i < cont; i++) {
      if (odd[i] < min) min = odd[i];
    }
  }
  cout << sum + (sum1 - min);
  return 0;
}
