#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, sum = 0;
  cin >> n;
  long long int min = 10000000000;
  long long int a[n];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    sum = sum + a[i];
    if (a[i] % 2 == 1 && min > a[i]) min = a[i];
  }
  if (sum % 2 == 0)
    cout << sum;
  else {
    sum = sum - min;
    cout << sum;
  }
  return 0;
}
