#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n;
  cin >> n;
  long long int a[n];
  long long int x = 0;
  long long int t = 101;
  for (long long int i = 0; i < n; i++) {
    cin >> a[i];
    x = x + a[i];
    if (a[i] % 2 == 1) t = min(t, a[i]);
  }
  if (x % 2 != 0) {
    cout << x;
  } else {
    if (t == 101)
      cout << 0;
    else
      cout << x - t;
  }
  return 0;
}
