while True: try: n=list(map(int,input().split())) s=0 for i in n[1:] : if i%2==1: s=s+i print(s) except EOFError: break