#include <bits/stdc++.h>
using namespace std;
long long num[100001];
int main() {
  int n;
  long long sum = 0;
  memset(num, NULL, sizeof(num));
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> num[i];
    sum += num[i];
  }
  if (!(sum % 2))
    cout << sum << endl;
  else {
    sort(num, num + n);
    for (int i = 0; i < n; i++)
      if (num[i] % 2) {
        sum -= num[i];
        break;
      }
    cout << sum << endl;
  }
}
