#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, sum = 0, l = 0;
  cin >> n;
  int arr[n], odd[n];
  for (int i = 0; i < n; ++i) {
    cin >> arr[i];
    sum += arr[i];
    if (arr[i] % 2 != 0) odd[l++] = arr[i];
  }
  if (sum % 2 != 0)
    cout << sum;
  else {
    if (l == 0)
      cout << "0";
    else {
      sort(odd, odd + l);
      cout << sum - odd[0];
    }
  }
  return 0;
}
