#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m = INT_MAX;
  long long sum = 0;
  cin >> n;
  int arr[n];
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
    sum += arr[i];
    if (arr[i] % 2 != 0 && arr[i] < m) m = arr[i];
  }
  if (sum % 2 == 0)
    cout << sum << endl;
  else {
    sum -= m;
    cout << sum << endl;
  }
  return 0;
}
