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