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