#include <bits/stdc++.h>
using namespace std;
long long n, t, ans = 0, k = 1000000001;
int main() {
  cin >> t;
  while (t--) {
    cin >> n;
    ans += n;
    if (n < k && n % 2 == 1) {
      k = n;
    }
  }
  if (ans % 2 == 0)
    cout << ans;
  else
    cout << ans - k;
  return 0;
}
