#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, n, odd = 0;
  cin >> t;
  int min_odd = 101;
  int ans = 0;
  for (int i = 0; i < t; i++) {
    cin >> n;
    ans += n;
    if (n & 1) {
      if (n < min_odd) {
        min_odd = n;
      }
    }
  }
  if (ans & 1) {
    cout << ans;
  } else {
    if (min_odd == 101) {
      cout << "0";
    } else {
      ans -= min_odd;
      cout << ans;
    }
  }
  return 0;
}
