Input: In 1916 Romania entered World War I on the side of the Allies. In doing so, Romania's goal was to unite all the territories with a Romanian national majority into one state. In the Treaty of Bucharest , terms for Romania's acquisition of territories within Austria-Hungary were stipulated. In 1918, after the October Revolution, the Bolsheviks signed a separate peace with the Central Powers in the Treaty of Brest-Litovsk. Romania was alone on the Eastern Front, a situation that far surpassed its military capabilities. Therefore, on 7 May 1918, Romania sued for peace. The prime minister of Romania, Alexandru Marghiloman, signed the Treaty of Bucharest with the Central Powers. However, this treaty was never signed by King Ferdinand of Romania. At the end of 1918 Romania's situation was dire. She was suffering from the consequences of punitive war reparations. Dobruja was under Bulgarian occupation. The German army under the command of Field Marshal August von Mackensen was retreating through Romania. The bulk of the Romanian army was demobilized, leaving only four full-strength divisions. A further eight divisions were left in a reserve status. The four battle-ready divisions were used to keep order and protect Basarabia from possible hostile actions of the Soviet Union. On 10 November 1918, taking advantage of the Central Powers' precarious situation, Romania re-entered the war on the side of the Allied forces, with similar objectives to those of 1916. King Ferdinand called for the mobilization of the Romanian army and ordered it to attack by crossing the Carpathian Mountains into Transylvania. The end of World War I that soon followed did not bring an end to fighting for the Romanian army. Its action continued into 1918 and 1919 in the Hungarian-Romanian war.

Question: What happened first, World War I or the Hungarian-Romanian war?

Input: The Forty Years' War was a military conflict fought between the Burmese-speaking Kingdom of Ava and the Mon-speaking Kingdom of Hanthawaddy Pegu. The war was fought during two separate periods: 1385 to 1391, and 1401 to 1424, interrupted by two truces of 1391-1401 and 1403-1408. It was fought primarily in today's Lower Burma and also in Upper Burma, Shan State and Rakhine State. It ended in a stalemate, preserving the independence of Hanthawaddy, and effectively ending Ava's efforts to rebuild the erstwhile Pagan Empire.

Question: How many years of fighting were there combined?

Input: As of the census of 2000, there were 6,299 people, 2,519 households, and 1,592 families residing in the city. The population density was 914.5 persons per square mile (353.0/km). There were 2,702 housing units at an average density of 392.3 per square mile (151.4/km). The racial makeup of the city was 75.33% White (U.S. Census), 22.38% African American (U.S. Census) or Race (United States Census), 0.24% Native American (U.S. Census), 0.57% Asian (U.S. Census), 0.08% Pacific Islander (U.S. Census), 0.24% from Race (United States Census), and 1.16% from two or more races. Hispanic (U.S. Census) or Latino (U.S. Census) of any race were 0.89% of the population.

Question: Did fewer people identify as Native American or Asian?

Input: Full Metal Jacket received a limited release on June 26, 1987, in 215 theaters. Its opening weekend saw it accrue $2,217,307, an average of $10,313 per theater, ranking it the number 10 film for the June 2628 weekend. It took a further $2,002,890 for a total of $5,655,225 before entering wide release on July 10, 1987, at 881 theatersan increase of 666. The July 1012 weekend saw the film gross $6,079,963, an average of $6,901 per theater, and rank as the number 2 grossing film. Over the next four weeks the film opened in a further 194 theaters to its widest release of 1,075 theaters before closing two weeks later with a total gross of $46,357,676, making it the number 23 highest-grossing film of 1987. The film eventually went on to gross $120 million worldwide.

Question:
How many dollars did the film bring in the first three weekends it was showing?