#include <bits/stdc++.h>
using namespace std;
int n;
int main() {
  scanf("%d", &n);
  int cnt = 0;
  int mins = 0x3f3f3f3f;
  long long ret = 0;
  for (int i = 0; i < n; i++) {
    int tmp;
    scanf("%d", &tmp);
    ret += tmp;
    if (tmp & 1) {
      cnt++;
      mins = min(mins, tmp);
    }
  }
  if (cnt & 1) {
    ret -= mins;
  }
  printf("%I64d\n", ret);
  return 0;
}
