#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, i, x, ans, m, minn = 2147483647;
  while (cin >> n) {
    ans = 0;
    m = 0;
    for (i = 0; i < n; i++) {
      cin >> x;
      if (x % 2 == 0)
        ans += x;
      else {
        m++;
        ans += x;
        minn = min(minn, x);
      }
    }
    if (m % 2 == 1) ans -= minn;
    cout << ans;
  }
  return 0;
}
