#include <bits/stdc++.h>
using namespace std;
const long double E = 1e-10;
const long long MOD = 51123987;
const int MAX = 1e6 + 10;
int main() {
  cout.precision(11);
  cout << fixed;
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  int n;
  cin >> n;
  long long ans = 0;
  vector<int> vec;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a % 2)
      vec.push_back(a);
    else
      ans += a;
  }
  sort(vec.rbegin(), vec.rend());
  for (int i = 1; i < (int)vec.size(); i += 2) ans += vec[i] + vec[i - 1];
  cout << ans;
}
