#include <bits/stdc++.h>
using namespace std;
int main() {
  long long tong = 0;
  long n, a[100005], i, dem = 0;
  cin >> n;
  for (i = 1; i <= n; i++) {
    cin >> a[i];
    if (a[i] % 2 == 1) dem++;
  }
  sort(a + 1, a + 1 + n);
  for (i = n; i > 0; i--) {
    if (tong % 2 == 0 && dem == 1 && a[i] % 2 == 1)
      tong += 0;
    else
      tong += a[i];
    if (a[i] % 2 == 1) dem--;
  }
  cout << tong;
}
