Fill the grid with letters from A to C so that each letter appears exactly once in every row and column. Clues outside the grid indicate either the first or the last letter that can be seen from the corresponding directions.