#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int n, a, sum, Min = INT_MAX;
  cin >> n;
  sum = 0;
  for (int i = 0; i < n; i++) {
    cin >> a;
    sum += a;
    if (a % 2 != 0) Min = min(Min, a);
  }
  if (sum % 2 == 0)
    cout << sum << endl;
  else
    cout << sum - Min << endl;
  return 0;
}
