Input (grade 11): States with borders on the sea (clockwise from north) include: South Korea, Japan, Republic of China (Taiwan) and the People's Republic of China.
Output (grade 10): Territories with borders on the sea (clockwise from north) include: South Korea, Japan, Taiwan, and Mainland China.