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