n = int(input("How many dish you both want to have : "))
arr = [int(i) for i in input().split()][:n]
val = 0
for i in arr:
	if i % 2 == 0:
		val += i
val //= 2
total = sum(arr)
print("I pay = ",total - val)
print("Friend pays = ", val)
e5fbbb792d81362cce9e9b6a495d3c9523c16f28
<mask token>

<mask token>
for i in arr:
    if i % 2 == 0:
        val += i
val //= 2
<mask token>
print('I pay = ', total - val)
print('Friend pays = ', val)

n = int(input('How many dish you both want to have : '))
arr = [int(i) for i in input().split()][:n]
val = 0
for i in arr:
    if i % 2 == 0:
        val += i
val //= 2
total = sum(arr)
print('I pay = ', total - val)
print('Friend pays = ', val)

n = int(input("How many dish you both want to have : "))
arr = [int(i) for i in input().split()][:n]
val = 0
for i in arr:
	if i % 2 == 0:
		val += i
val //= 2
total = sum(arr)
print("I pay = ",total - val)
print("Friend pays = ", val)