#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, sum = 0, temp, smallest_odd = INT_MAX;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> temp;
    if (temp % 2 == 1 && temp < smallest_odd) {
      smallest_odd = temp;
    }
    sum += temp;
  }
  if (sum % 2 == 0) {
    if (smallest_odd != INT_MAX)
      cout << sum - smallest_odd;
    else
      cout << "0";
  } else {
    cout << sum;
  }
  return 0;
}
