Problem Y: 简单的求和

Problem Y: 简单的求和

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 3  Solved: 1
[Submit] [Status] [Web Board] [Creator:]

Description

Input

Output

Sample Input Copy

3 2
0 1 1
1 2 3
1 1 1
3

Sample Output Copy

12

HINT