This task involves creating answers to complex questions, from a given passage. Answering these questions, typically involve understanding multiple sentences. Make sure that your answer has the same type as the "answer type" mentioned in input. The provided "answer type" can be of any of the following types: "span", "date", "number". A "span" answer is a continuous phrase taken directly from the passage or question. You can directly copy-paste the text from the passage or the question for span type answers. If you find multiple spans, please add them all as a comma separated list. Please restrict each span to five words. A "number" type answer can include a digit specifying an actual value. For "date" type answers, use DD MM YYYY format e.g. 11 Jan 1992. If full date is not available in the passage you can write partial date such as 1992 or Jan 1992. If you find multiple spans, please add them all as a comma separated list. Please restrict each span to five words.

Input: Consider Input: Passage: In an attempt to take the castle, Itakura Shigemasa was killed. More shogunate troops under Matsudaira Nobutsuna, Itakura's replacement, soon arrived. However, the rebels at Hara Castle resisted the siege for months and caused the shogunate heavy losses. Both sides had a hard time fighting in winter conditions. On February 3, 1638, a rebel raid killed 2,000 warriors from the Hizen Domain. However, despite this minor victory, the rebels slowly ran out of food, ammunition and other provisions. By April 1638, there were over 27,000 rebels facing about 125,000 shogunate soldiers. Desperate rebels mounted an assault against them on April 4 and were forced to withdraw. Captured survivors and the fortress' rumored sole traitor, Yamada Emosaku, revealed the fortress was out of food and gunpowder. On April 12, 1638, troops under the command of the Kuroda clan of Hizen stormed the fortress and captured the outer defenses. The rebels continued to hold out and caused heavy casualties until they were routed on April 15. 
Question: In what year was Itakura Shigemasa killed? 
Answer type: Date 

Output: {'day': '', 'month': '', 'year': '1637'}.


Input: Consider Input: Passage: Henry VI, elected King of the Romans since 1169, succeeded his father Frederick and was crowned Holy Roman Emperor by Pope Celestine III in 1191. In his struggle with the Princes to enforce his succession, the tide turned in his favour when the returning crusader King Richard was captured in Austria and only released against an oath of allegiance and an enormous ransom. In 1194 Henry could assert the inheritance claims of his wife Constance by conquering the Kingdom of Sicily. By declaring a new Crusade to reconquer Jerusalem, Henry aimed at an agreement with Pope Celestine III to acknowledge his rule over Sicily. In 1195 the armistice concluded by King Richard ended. Sultan Saladin had already died in 1193 and a conflict over his succession raged in the Ayyubid lands. In view of these favourable developments, the emperor hoped to continue the momentum of the previous campaign. Henry VI decided to take advantage of his father's threat of force against  the Byzantine Empire, affected by the rebellions in Serbia and Bulgaria as well as by Seljuk incursions. Emperor Isaac II Angelos had maintained close ties with the Sicilian ursurper king Tancred of Lecce, he was overthrown in April 1195 by his brother Alexios III Angelos. Henry took the occasion to exact tribute and had a threatening letter sent to the Byzantine emperor in order to finance the planned Crusade. Alexius immediately submitted to the tributary demands and exacted high taxes from his subjects to pay the Crusaders 5,000 pounds of gold. Henry also forged alliances with King Amalric of Cyprus and Prince Leo of Cilicia. 
Question: How many years did the armistice with King Richard last? 
Answer type: Number 

Output: 2.


Input: Consider Input: Passage: The Mongols' greatest triumph was when Kublai Khan established the Yuan dynasty in China in 1271. The Yuan dynasty created a "Han Army"  out of defected Jin troops and an army of defected Song troops called the "Newly Submitted Army" . The Mongol force which invaded southern China was far greater than the force they sent to invade the Middle East in 1256. The Yuan dynasty established the top-level government agency Bureau of Buddhist and Tibetan Affairs to govern Tibet, which was conquered by the Mongols and put under Yuan rule. The Mongols also invaded Sakhalin Island between 1264 and 1308. Likewise, Korea  became a semi-autonomous vassal state and compulsory ally of the Yuan dynasty for about 80 years. The Yuan dynasty was eventually overthrown during the Red Turban Rebellion in 1368 by the Han Chinese who gained independence and established the Ming dynasty. 
Question: How many years did the Mongols invade the Sakhalin Island? 
Answer type: Number 


Output: 40.