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