#include <bits/stdc++.h>
using namespace std;
int a[100100];
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) scanf("%d", &a[i]);
  if (n == 1 and a[1] % 2 == 1) {
    printf("0");
    return 0;
  }
  sort(a + 1, a + n + 1);
  long long s = 0;
  int t;
  for (int i = 1; i <= n; i++) s += a[i];
  for (int i = 1; i <= n; i++)
    if (a[i] % 2 == 1) {
      t = a[i];
      break;
    }
  if (s % 2 == 1) s -= t;
  printf("%I64d", s);
  return 0;
}
