#include <bits/stdc++.h>
using namespace std;
int main() {
  int flowers;
  cin >> flowers;
  int total = 0;
  int LowestOdd = 0;
  while (flowers--) {
    int petals;
    cin >> petals;
    total += petals;
    if (petals % 2 != 0 && (LowestOdd == 0 || petals < LowestOdd)) {
      LowestOdd = petals;
    }
  }
  if (total == 2 || LowestOdd == 0) {
    cout << 0;
  } else {
    cout << ((total % 2 == 0) ? total - LowestOdd : total);
  }
  return 0;
}
