I'm having a trouble with problem 1B — Spreadsheet, the problem is here
This is my submission for the problem
I'm not sure what makes the 860th line in the 6th test returns that output. Can you guys help me figure it out what's the problem please, thanks



