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