Input (grade 11): At the southeastern end of the archipelago, the eight main islands are (from the northwest to southeast) Niihau, Kauai, Oahu, Molokai, Lanai, Kahoolawe, Maui and Hawaii.
Output (grade 4): The main islands are Niihau, Kauai, Oahu, Molokai, Lanai, Kahoolawe, Maui and Hawaii.