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