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