#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> fortune;
  int counter_even = 0, counter_odd = 0;
  int ans = 0;
  for (int i = 0; i < n; i++) {
    int j;
    cin >> j;
    if (j % 2)
      counter_odd++;
    else
      counter_even++;
    fortune.push_back(j);
  }
  if (counter_odd == 0) {
    cout << "0" << endl;
    return 0;
  } else {
    sort(fortune.begin(), fortune.end());
    int odd = 0;
    for (int i = 0; i < n; i++) {
      if (fortune[i] % 2) {
        odd = fortune[i];
        break;
      }
    }
    for (int i = (n - 1); i >= 0; i--) ans += fortune[i];
    if (!(ans % 2)) ans -= odd;
  }
  cout << ans << endl;
  return 0;
}
