Input (grade 10): King Joseph abdicated and returned to France after defeat at the Battle of Vitoria in 1813.
Output (grade 11): Bonaparte abdicated and returned to France after defeat at the Battle of Vitoria.