#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, sum = 0, w = 100000000;
  cin >> n;
  if (n == 1) {
    long long a;
    cin >> a;
    if (a % 2 == 0)
      cout << 0 << endl;
    else
      cout << a << endl;
    return 0;
  }
  vector<long long> arr(n);
  for (long long i = 0; i < n; i++) {
    cin >> arr[i];
    sum = sum + arr[i];
  }
  for (long long i = 0; i < n; i++) {
    if (arr[i] % 2 != 0 and arr[i] < w) w = arr[i];
  }
  if (sum % 2 != 0)
    cout << sum << endl;
  else {
    if (sum - w < 0)
      cout << 0 << endl;
    else
      cout << sum - w << endl;
  }
}
