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