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