#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int arr[n];
  for (int i = 0; i < n; i++) cin >> arr[i];
  int minodd = 1073741823, countodd = 0;
  for (int i = 0; i < n; i++)
    if (arr[i] % 2 != 0 && ++countodd > 0 && arr[i] < minodd) minodd = arr[i];
  long long sum = 0;
  for (int i = 0; i < n; i++) sum += arr[i];
  sum -= minodd * (countodd % 2);
  cout << sum;
}
