Input (grade 13): In view of Hannibal's great popularity, the Carthaginian government did not repudiate Hannibal's actions, and the war he sought was declared at the end of the year.
Output (grade 4): The war Hannibal wanted was declared at the end of the year.