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