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