#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  vector<long long int> vec(n), odd, even;
  for (int i = 0; i < n; i++) {
    cin >> vec[i];
    if (vec[i] % 2 == 0)
      even.push_back(vec[i]);
    else
      odd.push_back(vec[i]);
  }
  sort(odd.begin(), odd.end());
  long long int sum = 0;
  if (odd.size() % 2 == 0)
    cout << accumulate(vec.begin(), vec.end(), sum) << "\n";
  else
    cout << accumulate(even.begin(), even.end(), sum) +
                accumulate(odd.begin(), odd.end(), sum) - odd[0]
         << "\n";
  return 0;
}
