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