#include <bits/stdc++.h>
using namespace std;
inline int two(int n) { return 1 << n; }
inline int test(int n, int b) { return (n >> b) & 1; }
inline void set_bit(int& n, int b) { n |= two(b); }
inline void unset_bit(int& n, int b) { n &= ~two(b); }
inline int last_bit(int n) { return n & (-n); }
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int n;
  cin >> n;
  unsigned long long ans = 0;
  int min_odd = INT_MAX, odd_count = 0;
  for (int i = 0; i < n; i++) {
    int val;
    cin >> val;
    ans += val;
    if (val % 2 == 1) {
      odd_count++;
      min_odd = min(min_odd, val);
    }
  }
  if (odd_count % 2 == 1) ans -= min_odd;
  cout << ans << "\n";
  return 0;
}
