grid
Output.txt

Click 'Run' to see the output Here

Input.txt