#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long odd = 0;
  long long minn = 2000000000;
  long long sum = 0;
  long long n;
  cin >> n;
  for (long long i = 0; i < n; i++) {
    long long x;
    cin >> x;
    sum += x;
    if (x % 2 == 1) {
      minn = min(minn, x);
      odd++;
    }
  }
  if (odd % 2 == 1) sum -= minn;
  cout << sum;
  return 0;
}
