Input (grade 10): Waimea, once the capital of Kauai on the island's southwest side, was the first place in Hawaii visited by British explorer Captain James Cook in 1778.
Output (grade 10): Waimea, on the islands southwest side and once the capital of Kauai, was the first place visited by explorer Captain James Cook in 1778.