#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:16777216")
using namespace std;
template <class T>
void pv(T a, T b) {
  for (T i = a; i != b; ++i) cout << *i << " ";
  cout << endl;
}
int a[1 << 20], n;
int main() {
  int tot = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    tot += a[i];
  }
  if (tot & 1) {
    cout << tot << endl;
  } else {
    sort(a, a + n);
    for (int i = 0; i < n; i++)
      if (a[i] & 1) {
        tot -= a[i];
        cout << tot << endl;
        return 0;
      }
    cout << 0 << endl;
  }
  return 0;
}
