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