#include <bits/stdc++.h>
using namespace std;
int a[110];
int main() {
  int n;
  cin >> n;
  int sum = 0;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    sum = sum + a[i];
  }
  sort(a, a + n);
  int j = 0;
  if (sum % 2 == 0) {
    while (j < n) {
      if (a[j] % 2 == 1) {
        cout << sum - a[j];
        return 0;
      } else
        j++;
    }
    cout << 0;
    return 0;
  } else if (sum % 2 == 1) {
    cout << sum;
    return 0;
  }
}
