#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int a, b = 0, k = 0;
  cin >> a;
  long long int s[a];
  for (int i = 0; i < a; i++) {
    cin >> s[i];
    b = b + s[i];
  }
  if (b % 2 == 1)
    cout << b << endl;
  else {
    sort(s, s + a);
    for (int i = 0; i < a; i++) {
      if (s[i] % 2 == 1) {
        b = b - s[i];
        break;
      } else
        k++;
    }
    if (k == a)
      cout << "0" << endl;
    else
      cout << b << endl;
  }
  return 0;
}
