Олимпиадный тренинг

Задача 37092. 12.41


The two-dimensional array stores information about the salary N of a person for each of the 12 months of the year (the rows contain information about people, the columns contain information about months). Write a program to calculate the total amount paid to employees for the K-th month of the year (months are numbered from 1).

Input  
The first line contains the number N (0< N <= 25). Followed by N lines of 12 numbers each (each number is a natural number, no more 150). The last line is a number K (1 <= K <= N).

Imprint 
Display the answer to the problem.

Examples
# Input Output
1 3
148 16 121 82 35 27 109 99 79 100 66 100
22 62 154 66 134 98 32 60 112 55 65 42 
55 138 115 39 154 151 113 116 104 85 127 108
8
275