#include <bits/stdc++.h>
using namespace std;
long long nums[100005];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  long long potL = 1000000000;
  long long total = 0;
  for (int i = 0; i < n; i++) {
    long long num;
    cin >> num;
    if (num % 2 == 1 && num < potL) potL = num;
    total += num;
    nums[i] = num;
  }
  if (total % 2 == 1) total -= potL;
  cout << total << endl;
  return 0;
}
