n = int(input())
k = int(input())
sum = 0
for x in range(1, k + 1):
    number = int(input())
    sum = sum + number
print(sum)

3b5e19472d33a08f13f9c4dea3ba9d782209ddf5
<mask token>

<mask token>
for x in range(1, k + 1):
    number = int(input())
    sum = sum + number
print(sum)

n = int(input())
k = int(input())
sum = 0
for x in range(1, k + 1):
    number = int(input())
    sum = sum + number
print(sum)
