#include <bits/stdc++.h>
using namespace std;
long long fact[200001];
long long mod = 998244353;
signed main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n;
  cin >> n;
  map<long long, long long> mp;
  long long arr[n];
  long long sum = 0;
  for (long long i = 1; i <= n; i++) {
    cin >> arr[i];
    sum += arr[i];
  }
  sort(arr, arr + n);
  if (sum % 2 != 0)
    cout << sum;
  else {
    for (long long i = 0; i < n; i++)
      if (arr[i] % 2 != 0) return cout << sum - arr[i], 0;
    cout << 0;
  }
}
