#include <bits/stdc++.h>
using namespace std;
int main(void) {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n, a, x = 0, y = 0;
  ;
  cin >> n;
  int array[n];
  vector<int> odd, even;
  for (int i = 0; i < n; i++) {
    cin >> a;
    array[i] = a;
    if (a % 2 == 0)
      even.push_back(a);
    else
      odd.push_back(a);
  }
  sort(odd.begin(), odd.end());
  sort(even.begin(), even.end());
  int sum = 0;
  for (int i = 0; i < odd.size(); i++) sum += odd[i];
  if (sum != 0) {
    for (int i = 0; i < even.size(); i++) sum += even[i];
    if (sum % 2 == 0) {
      sum -= odd[0];
    }
  }
  cout << sum << endl;
}
