Fill the grid with the given letters, so that each letter appears exactly once in every row and column. Clues outside the grid indicate the letters seen first from the corresponding directions. Same letters cannot touch each other diagonally.