#include <bits/stdc++.h>
using namespace std;
static int n, nums;
static vector<int> v;
int main() {
  while (scanf("%d", &n) != EOF) {
    int sum = 0;
    int oddMin = INT_MAX;
    for (int i = 0; i < n; i++) {
      scanf("%d", &nums);
      sum += nums;
      if (nums % 2 != 0) oddMin = min(oddMin, nums);
    }
    if (sum % 2 == 0 && oddMin != INT_MAX) {
      sum -= oddMin;
    }
    printf("%d\n", (sum % 2 == 0 ? 0 : sum));
  }
  return 0;
}
