#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, res = 0, o = 0, e = 0;
  cin >> n;
  long long arr[n];
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
    res += arr[i];
    if (arr[i] & 1)
      o++;
    else
      e++;
  }
  sort(arr, arr + n);
  if (res & 1) {
    for (int k = 0; k < n; k++) {
      if (arr[k] & 1) {
        cout << res - arr[k];
        return 0;
      }
    }
  } else if (res % 2 == 0)
    cout << res << endl;
  return 0;
}
