Instructions: 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: Passage: John III nicknamed "o Colonizador" was the King of Portugal and the Algarves from 13 December 1521 to 11 June 1557. He was the son of King Manuel I and Maria of Aragon, the third daughter of King Ferdinand II of Aragon and Queen Isabella I of Castile. John succeeded his father in 1521, at the age of nineteen. During his rule, Portuguese possessions were extended in Asia and in the New World through the Portuguese colonization of Brazil. John III's policy of reinforcing Portugal's bases in India secured Portugal's monopoly over the spice trade of cloves and nutmeg from the Maluku Islands, as a result of which John III has been called the "Grocer King". On the eve of his death in 1557, the Portuguese empire had a global dimension and spanned almost 1 billion acres . During his reign, the Portuguese became the first Europeans to make contact with both China, under the Ming Dynasty, and Japan, during the Muromachi period. He abandoned Muslim territories in North Africa in favor of trade with India and investment in Brazil. In Europe, he improved relations with the Baltic region and the Rhineland, hoping that this would bolster Portuguese trade.
Question: How many years did John III rule?
Answer type: Number
Output:
36.