Input (grade 10): 1848 & ndash; The Treaty of Guadalupe Hidalgo is ratified by the United States Senate, ending the Mexican-American War.
Output (grade 8): 1831 - The French Foreign Legion is established by King Louis-Philippe to support his war in Algeria.