Input: Article: The city was founded in 734 BC by the Phoenicians as Ziz ('flower'). Palermo then became a possession of Carthage, before becoming part of the Roman Republic, the Roman Empire and eventually part of the Byzantine Empire, for over a thousand years. The Greeks named the city Panormus meaning 'complete port'. From 831 to 1072 the city was under Arab rule during the Emirate of Sicily when the city first became a capital. The Arabs shifted the Greek name into Balarm, the root for Palermo's present-day name. Following the Norman reconquest, Palermo became the capital of a new kingdom (from 1130 to 1816), the Kingdom of Sicily and the capital of the Holy Roman Empire under Frederick II Holy Roman Emperor and Conrad IV of Germany, King of the Romans. Eventually Sicily would be united with the Kingdom of Naples to form the Kingdom of the Two Sicilies until the Italian unification of 1860.

Now answer this question: During which years was Palermo ruled by the Arabs?

Output: 831 to 1072

Input: Article: Some 97 percent of male BYU graduates and 32 percent of female graduates took a hiatus from their undergraduate studies at one point to serve as LDS missionaries. In October 2012, the LDS Church announced at its general conference that young men could serve a mission after they turn 18 and have graduated from high school, rather than after age 19 under the old policy. Many young men would often attend a semester or two of higher education prior to beginning missionary service. This policy change will likely impact what has been the traditional incoming freshman class at BYU. Female students may now begin their missionary service anytime after turning 19, rather than age 21 under the previous policy. For males, a full-time mission is two years in length, and for females it lasts 18 months.

Now answer this question: How long is a full-time mission for males?

Output: two years

Input: Article: In 1868, the horse-drawn tram company Compania de Tranvias al Paso del Molino y Cerro created the first lines connecting Montevideo with Union, the beach resort of Capurro and the industrialized and economically independent Villa del Cerro, at the time called Cosmopolis. In the same year, the Mercado del Puerto was inaugurated. In 1869, the first railway line of the company Ferrocarril Central del Uruguay was inaugurated connecting Bella Vista with the town of Las Piedras. During the same year and the next, the neighbourhoods Colon, Nuevo Paris and La Comercial were founded. The famous to our days Sunday market of Tristan Narvaja Street was established in Cordon in 1870. Public water supply was established in 1871. In 1878, Bulevar Circunvalacion was constructed, a boulevard starting from Punta Carretas, going up to the north end of the city and then turning west to end at the beach of Capurro. It was renamed to Artigas Boulevard (its current name) in 1885. By Decree, on 8 January 1881, the area Los Pocitos was incorporated to the Novisima Ciudad (Most New City).

Now answer this question: What year did Compania de Tranvias al Paso del Molino y Cerro creat the first lines connecting Montevideo with Union?

Output:
1868