#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  int n, count = 0, min = 1000000000;
  long long sum = 0;
  cin >> n;
  int arr[n];
  for (int i = 0; i < n; ++i) {
    cin >> arr[i];
  }
  for (int i = 0; i < n; ++i) {
    if (arr[i] % 2 != 0) {
      count++;
    }
  }
  if (count % 2 != 0) {
    for (int i = 0; i < n; ++i) {
      if (arr[i] % 2 != 0 && arr[i] < min) {
        min = arr[i];
      }
    }
  }
  for (int i = 0; i < n; ++i) {
    if (arr[i] == min) {
      arr[i] = 0;
      break;
    }
  }
  for (int i = 0; i < n; ++i) {
    sum = sum + arr[i];
  }
  cout << sum << endl;
  return 0;
}
