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