#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, num, s_odd = 0, s_even = 0, min_odd = 3999999999;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> num;
    if (num % 2 == 0) {
      s_even += num;
    } else {
      s_odd += num;
      if (num < min_odd) min_odd = num;
    }
  }
  if (s_odd % 2 == 0) {
    cout << s_odd + s_even;
  } else {
    cout << s_odd + s_even - min_odd;
  }
}
