#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, i, minodd = 9999999999, t, s = 0;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> t;
    if (t % 2 == 1 && t < minodd) minodd = t;
    s += t;
  }
  if (s % 2 == 0)
    cout << s;
  else
    cout << s - minodd;
  return 0;
}
