#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int cnt = 0;
  int val;
  int min = 1000;
  int evesum = 0, total = 0, oddsum = 0;
  for (int i = 0; i < n; i++) {
    cin >> val;
    if (val % 2 == 0) {
      evesum += val;
    } else {
      oddsum += val;
      cnt++;
      if (val < min) min = val;
    }
  }
  if (oddsum == 0)
    cout << "0" << endl;
  else if (oddsum % 2 == 0) {
    oddsum -= min;
    int ans = oddsum + evesum;
    cout << ans << endl;
  } else {
    int ans = oddsum + evesum;
    cout << ans << endl;
  }
  return 0;
}
