- There will be n+2 lines in the input
- The first n lines represent the partially filled board
- Each of the first n lines has n space seperated elements which can be a digit from 0-9 or the element - which denotes blackened cells
- The second last line has space seperated integers representing 'across numbers'
- The last line has space seperated integers representing 'down numbers'