#include <bits/stdc++.h>
long long int arr[100000];
int main() {
  long long int n, i, min = INT_MAX, sum = 0;
  scanf("%lld", &n);
  for (i = 0; i < n; i++) {
    scanf("%lld", &arr[i]);
    sum += arr[i];
  }
  if (sum % 2 == 0)
    printf("%lld\n", sum);
  else {
    for (i = 0; i < n; i++) {
      if (arr[i] % 2 != 0 && min > arr[i]) min = arr[i];
    }
    printf("%lld", sum - min);
  }
  return 0;
}
