n = int(input())
n1 = list(map(int, input().split()))
j = []
s = 0
for i in n1:
    s += i
    if i % 2 != 0:
        j.append(i)
if s % 2 != 0:
    s -= min(j)
print(s)