#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, ans = 0;
  vector<int> ss;
  cin >> a;
  for (int i = 0; i < a; i++) {
    cin >> b;
    ans += b;
    if (b % 2 != 0) ss.push_back(b);
  }
  sort(ss.begin(), ss.end());
  if (ans % 2 != 0) cout << ans << endl;
  if (ans % 2 == 0) {
    if (ss.size() == 0) {
      cout << "0" << endl;
    } else
      cout << ans - ss[0] << endl;
  }
  return 0;
}
