# 1
mass = list(map(int, input(). split()))
n = int(input())
print(mass)
if n > sum(mass) / len(mass):
mass. insert(0, n)
else:
mass. append(n)
print(mass)
# 2
mass = list(map(int, input(). split()))
print(mass)
k = 0
for i in range(len(mass)):
if mass[i] % 2 != 0:
k += 1
print(k)
# 3
mass = list(map(int, input(). split()))
print(mass)
for i in range(len(mass) - 1, -1, -1):
if mass[i] % 2 != 0:
mass. remove(mass[i])
print(mass)