Input (grade 12): In 1898, the United States won the Spanish-American War and occupied Cuba, Puerto Rico and the Philippines, ending Spanish rule in America.
Output (grade 11): The remaining Spanish colonies, Cuba and Puerto Rico, were lost in 1898 as a consequence of the Spanish-American War.