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