a = list(map(int, input().split()))max1 = 0max2 = 0for i in range(7): if a[i] % 2 == 0: else :print(max1 + max2)