#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, s = 0, mn = 1001, arr[105], c = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
    s += arr[i];
    if (arr[i] % 2 != 0) {
      mn = min(mn, arr[i]);
    } else {
      c++;
    }
  }
  if (s % 2 != 0) {
    cout << s;
  } else if (c == n) {
    cout << "0";
  } else {
    cout << s - mn;
  }
  return 0;
}
