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