#include <bits/stdc++.h>
int nav[2];
int main() {
  bool flag = false;
  long long n, sum = 0, h = 1001001001;
  scanf("%lld", &n);
  for (int i = 0; i < n; i++) {
    int b;
    scanf("%d", &b);
    sum += b;
    if (b % 2 == 1 && b < h) {
      h = b;
    }
  }
  if (sum % 2 == 1) {
    printf("%lld", sum - h);
    return 0;
  }
  printf("%lld", sum);
  return 0;
}
