#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  long long sum = 0, m = 1000000007;
  for (long long i = 0; i < n; i++) {
    long long x;
    cin >> x;
    if (x % 2) m = min(m, x);
    sum += x;
  }
  if (m == 1000000007) m = sum;
  if (sum % 2 == 0) sum -= m;
  cout << sum << "\n";
  return 0;
}
