#include <bits/stdc++.h>
using namespace std;
vector<int> v, vc;
map<int, int> mp;
int main() {
  int low, up;
  int n, sum, odd;
  while (cin >> n) {
    sum = 0;
    odd = 11111111;
    for (int i = 0; i < n; i++) {
      int num;
      cin >> num;
      sum += num;
      if (num % 2 != 0) odd = min(odd, num);
    }
    if (sum % 2 == 0) sum = sum - odd;
    if (sum % 2 == 0 || odd == 11111111)
      cout << 0 << endl;
    else
      cout << sum << endl;
  }
  return 0;
}
