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