Sums in triangle Runtime Error Python3

I am getting runtime error while running my python3 code for Sums in Triangle Problem.
http://www.codechef.com/viewsolution/5268194

I am not able to figure out where I went wrong.

You cannot use list(input()). Instead use map built-in function as follows:
lst.append(list(map(int, input().split())))