#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a;
  vector<int> v1;
  vector<int> v2;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a % 2 != 0)
      v1.push_back(a);
    else
      v2.push_back(a);
  }
  sort(v1.begin(), v1.end());
  sort(v2.begin(), v2.end());
  long int s1 = 0, s2 = 0;
  for (int i = 0; i < v1.size(); i++) {
    s1 += v1[i];
  }
  for (int i = 0; i < v2.size(); i++) {
    s2 += v2[i];
  }
  if (s1 % 2 != 0)
    cout << s1 + s2;
  else {
    if (s1 == 0)
      cout << "0";
    else {
      s1 -= v1[0];
      cout << s1 + s2;
    }
  }
  return 0;
}
