#include <bits/stdc++.h>
using namespace std;
void fast() {
  std::ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
}
int main() {
  fast();
  long long x, min = INT_MAX, odd = 0, even = 0, ans = 0;
  int number;
  cin >> number;
  while (number) {
    cin >> x;
    if (x & 1) {
      odd += x;
      ans++;
      if (x < min) {
        min = x;
      }
    } else {
      even += x;
    }
    number--;
  }
  if (ans & 1)
    cout << even + (odd - min) << "\n";
  else
    cout << even + odd << "\n";
  return 0;
}
