while True: list=map(int,raw_input().strip().split()) s = 0 for value in list[1:]: if value % 2 == 1: s += value print s