#include <bits/stdc++.h>   using namespace std;   int n, m, sum = 0, a = 101;   int main() {     cin >> n;     while (n--) {       cin >> m;       sum += m;       if (m & 1 && m < a) a = m;     }     if (sum & 1)       cout << sum << endl;     else {       if (a == 101)         cout << 0 << endl;       else         cout << sum - a << endl;     }   }   