#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%d", &n);
  int arr[n], odd = 0, even = 0;
  for (int i = 0; i < n; i++) {
    scanf("%d", arr + i);
    if (arr[i] % 2)
      odd++;
    else
      even++;
  }
  sort(arr, arr + n);
  reverse(arr, arr + n);
  long long ans = 0;
  bool b = odd % 2;
  for (int i = 0; i < n; i++) {
    if (!b) {
      ans += arr[i];
    } else {
      if (arr[i] % 2 && odd > 1) {
        ans += arr[i];
        odd--;
      } else if (arr[i] % 2 == 0) {
        ans += arr[i];
      }
    }
  }
  cout << ans << endl;
}
