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