This task involves annotating the answer type to a given question that involve some kind of complex reasoning (including numerical reasoning). Note that the questions require looking at more than one part of the passage to answer. There are 3 possible answer types (i) spans, (ii) numbers and (iii) dates. If the answer can be found in the passage, label it as "span". If the answer is a number, label as "number". Similarly, label "date" if you think the answer to the given question is a date.

Input: Consider Input: Passage: Ferdinand died in January 1516 and was succeeded by his mentally unstable daughter Joanna. Within a few weeks, her son proclaimed himself her co-ruler as King Charles I of Castile and Aragon. Charles had been raised in Netherlands and his affairs were mostly controlled by the Flemish noble William de Croÿ, sieur de Chièvres.  In 1517, the seventeen-year-old King sailed to Castile, where he was formally recognised as King of Castile.  There, his Flemish court provoked much scandal, as de Croÿ shamelessly sold government privileges for personal money and installed other Flemish nobles into government offices.  In May 1518, Charles traveled to Barcelona in Aragon, where he would remain for nearly two years. Here, he haggled with Aragon's slightly stronger cortes, the Generalitat, for privileges and his formal recognition as King of Aragon. Aragon managed to maintain more local control than Castile did, but mostly because Aragon was poorer and there was no point in pressing the issue for extra tax money that wasn't there to be collected. In 1519, the King's paternal grandfather, Holy Roman Emperor Maximilian I, died.  Charles competed with King Francis I of France to win the imperial election by aggressively bribing prince-electors.  Charles won, becoming Emperor Charles V. He left Aragon to return to Castile to raise funds to pay down the debts he had incurred in the election.  The taxes granted to Charles at a Castilian cortes in Corunna would help spark the Revolt of the Comuneros of Castile.  Of more importance for Aragon, in the summer of 1519 Charles granted his permission to the Germanies to arm themselves against the raiding Muslim fleets. While permission had previously been granted under Ferdinand, Charles was able to force the Valencian nobles to accept this decision.
Question: When was King Charles I born?

Output: date


Input: Consider Input: Passage: The Azov campaigns of 1695-96 , were two Russian military campaigns during the Russo-Turkish War of 1686-1700, led by Peter the Great and aimed at capturing the Turkish fortress of Azov , which had been blocking Russia's access to the Azov Sea and the Black Sea.  Since the Crimean campaigns of 1687 and 1689 had failed because of the difficulty of moving a large army across the steppe, Peter decided to try a river approach.
Question: How many years did the war last?

Output: number


Input: Consider Input: Passage: The conflict between Novgorod and Teutonic Knights began in 1210, when the knights attacked the Estonians. Novgorod campaigned against the Livonians in 1217, 1219, 1222, and 1223, facing repeated failure. In 1224, the knights captured Dorpat . Soon after the capture of Dorpat, an internal conflict arose in Novgorod. The townspeople refused to help in the fight against the knights. Soon, a split occurred among the Novgorod nobles. Expelled from the city, the nobles and the Knights captured Izborsk in 1233, but soon were expelled from the city by the Pskov army. A year later, Yaroslav Vsevolodovich of Novgorod returned to the Livonian lands and devastated the outskirts of the town Odenpa, triumphing over Emajõe and forcing the Livonians to sign a peace agreement. In 1236, Lithuania had lost a Great Master of the Order of the Sword Volquin von Winterstein, and Pope Gregory IX gave his consent to the Union of the Order of the Sword with the Teutonic Knights. The master of the Order was Hermann von Balk. In December 1237, Pope Gregory IX proclaimed the second crusade against Finland. Danish king Waldemar II and the joint Masters of the Order agreed to divide Estonia and attacked Baltic Russia in June 1238 in collaboration with the Swedes. The Russian lands were weakened by the Mongol invasion.
Question: In what year were the Livonians forced to sign a peace agreement after Yaroslav Vsevolodovich devastated the outskirts of Odenpa?


Output: date