while True: st=map(int,raw_input().strip().split()) n=st[0] sum=0 for i in range(1,n+1): if st[i]%2!=0: sum=sum+st[i] print sum