#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  std::vector<int> vx(n);
  long long sum = 0;
  int odd = 0;
  for (auto &a : vx) {
    cin >> a;
    sum += a;
    if (a & 1) odd++;
  }
  sort(vx.begin(), vx.end());
  int val = 0;
  for (int a : vx) {
    if (a & 1) {
      val = a;
      break;
    }
  }
  if (odd == 0)
    cout << 0 << endl;
  else if (odd & 1)
    cout << sum << endl;
  else
    cout << sum - val << endl;
}
