#include <bits/stdc++.h>
using namespace std;
long long a[100010], sum;
int n;
int main() {
  sum = 0;
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) {
    scanf("%lld", &a[i]);
    sum += a[i];
  }
  sort(a + 1, a + n + 1);
  if (sum % 2) {
    for (int i = 1; i <= n; i++) {
      if (a[i] % 2) {
        cout << sum - a[i] << endl;
        break;
      }
    }
  } else {
    cout << sum << endl;
  }
  return 0;
}
