#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a[105], Min, sum;
  while (cin >> n) {
    sum = 0;
    Min = 1 << 10;
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      sum += a[i];
      if (a[i] & 1) Min = min(Min, a[i]);
    }
    if (Min == 1 << 10) Min = sum;
    if (n == 1)
      if (sum & 1)
        cout << sum << endl;
      else
        cout << 0 << endl;
    else if (sum & 1)
      cout << sum << endl;
    else
      cout << sum - Min << endl;
  }
  return 0;
}
