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