import itertools
a = int(input())
n = list(map(int, input().split()))
com = []
for i in range(a + 1):
    c = itertools.combinations(n, i)
    com.append(c)
k = []
for i in com:
    for j in i:
        if sum(j) % 2 != 0:
            k.append(sum(j))
if len(k) == 0:
    print(0)
else:
    print(max(k))

efc0f09255cd184a4492da6e43d18ae8830f87ec
<mask token>

<mask token>
for i in range(a + 1):
    c = itertools.combinations(n, i)
    com.append(c)
<mask token>
for i in com:
    for j in i:
        if sum(j) % 2 != 0:
            k.append(sum(j))
if len(k) == 0:
    print(0)
else:
    print(max(k))

<mask token>
a = int(input())
n = list(map(int, input().split()))
com = []
for i in range(a + 1):
    c = itertools.combinations(n, i)
    com.append(c)
k = []
for i in com:
    for j in i:
        if sum(j) % 2 != 0:
            k.append(sum(j))
if len(k) == 0:
    print(0)
else:
    print(max(k))

import itertools
a = int(input())
n = list(map(int, input().split()))
com = []
for i in range(a + 1):
    c = itertools.combinations(n, i)
    com.append(c)
k = []
for i in com:
    for j in i:
        if sum(j) % 2 != 0:
            k.append(sum(j))
if len(k) == 0:
    print(0)
else:
    print(max(k))
