Fill the grid with digits 1 to 9, so that each digit occurs exactly once in every row, every column and every 3x3 box. Digits given outside the grid should appear in the first three cells in the corresponding directions.