Input (grade 13): Koxinga was son of a former merchant who styled himself as a Ming Dynasty loyalist; he hoped to marshal his troops on Taiwan and use it as a base to regain mainland China for the Ming Dynasty.
Output (grade 9): He hoped to get his soldiers together on Taiwan and use it as a base to get back mainland China for the Ming Dynasty.