while True: try: s=0 jg=[] li=map(int,raw_input().strip().split()) n,shu=li[0],li[1:] for x in shu: if x%2!=0: s+=x print s except EOFError: raise