#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, odd = 0, even = 0;
  scanf("%d", &n);
  vector<int> v(n);
  vector<int> v2;
  for (int i = 0; i < n; i++) {
    scanf("%d", &v[i]);
    if (v[i] % 2) {
      v2.push_back(v[i]);
      odd++;
    } else
      even += v[i];
  }
  int sum = even;
  if (odd == 0)
    printf("0\n");
  else {
    if (odd % 2) {
      for (int i = 0; i < v2.size(); i++) sum += v2[i];
    } else {
      sort(v2.begin(), v2.end());
      int i = v2.size() - 1;
      while (i) {
        sum += v2[i];
        i--;
      }
    }
    printf("%d\n", sum);
  }
  return 0;
}
