#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  long long arr[n], ans = 0, temp = 0;
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
    temp += arr[i];
  }
  if (temp % 2 == 0) {
    cout << temp;
  } else {
    bool flag = false;
    sort(arr, arr + n);
    for (int i = 0; i < n; i++) {
      if (arr[i] % 2 != 0) {
        temp -= arr[i];
        flag = true;
        break;
      }
    }
    if (flag == true) {
      cout << temp;
    } else {
      cout << "0";
    }
  }
  return 0;
}
