Fill the grid with digits 1 to n so that each digit appears exactly once in every row and column. Clues inside the grid represent the relations between the digits in that cells.