#include <bits/stdc++.h>
using namespace std;
int arr[100005];
long long ans = 0;
int main() {
  int n;
  cin >> n;
  vector<int> a;
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
    if (arr[i] % 2)
      a.push_back(arr[i]);
    else
      ans += arr[i];
  }
  int i;
  if ((int)a.size() % 2)
    i = 1;
  else
    i = 0;
  sort(a.begin(), a.end());
  int sz = a.size();
  for (; i < sz; i++) ans += a[i];
  cout << ans << endl;
  return 0;
}
