Input: Riding high from their home upset over the Seahawks, the 49ers flew to the Edward Jones Dome for an NFC West rematch with their historic rival, the St. Louis Rams. After a scoreless first quarter, the Niners trailed early. In the second quarter, the Rams struck first with kicker Jeff Wilkins getting a 24-yard field goal, while RB Steven Jackson got a 36-yard TD run. San Francisco would get on the board with RB Frank Gore getting a 12-yard TD run, yet Wilkins gave St. Louis a 51-yard field goal as time ran out on the half. In the third quarter, the 49ers took the lead as QB Alex Smith completed a 1-yard TD pass to TE Eric Johnson for the only score of the period. In the fourth quarter, kicker Joe Nedney gave the Niners a six-point lead with a 24-yard field goal. However, the Rams would get the win with QB Marc Bulger completing a 5-yard TD pass to WR Kevin Curtis. With the loss, the 49ers fell to 5-6.

Question: How many touchdowns were scored in the second quarter?

Input: The Lithuanian Civil War of 1432-1438 was a conflict over the succession to the throne of the Grand Duchy of Lithuania, after Vytautas the Great died in 1430 without leaving an heir. The war was fought on the one side by Svitrigaila, allied with the Teutonic Knights, and on the other by Sigismund Kestutaitis, backed by the Kingdom of Poland. The war threatened to sever the Union of Krewo, the personal union between Poland and Lithuania. Svitrigaila's alliance with the Grand Master of the Teutonic Order, Paul von Rusdorf, launched the Polish-Teutonic War but failed to secure victory for Svitrigaila. When Sigismund captured power in Lithuania by staging a coup in 1432, Lithuania split into two opposing camps, and there began three years of devastating hostilities. To prevent the Knights from continuing their support of Svitrigaila, Poland backed a Hussite invasion of Prussia in 1433. The war ended in a decisive defeat for Svitrigaila and his ally, the Livonian branch of the Teutonic Knights, at the Battle of Pabaiskas in September 1435. Svitrigaila eventually surrendered in 1437; Sigismund Kestutaitis ruled Lithuania for only eight years before he was assassinated in 1440.

Question: How many years after the coup in 1432 were Svitrigaila and the Teutonic Knights defeated?

Input: When Jogaila died in May 1434, the Order resumed its backing for Svitrigaila, who rallied his supporters, including knights from the Livonian Order, the Orthodox dukes, and his nephew Sigismund Korybut, a distinguished military commander of the Hussites. The final Battle of Pabaiskas was fought in September 1435 near Ukmerge , northwest of Vilnius. It is estimated to have involved 30,000 men on both sides. Svitrigaila's army, led by Sigismund Korybut, was split by the attacking Lithuanian-Polish army, led by Michael Zygimantaitis, and soundly defeated. The Livonian Order had suffered a great defeat, sometimes compared to that which had been inflicted on the Teutonic Knights at Grunwald in 1410. On 31 December 1435 the Teutonic Knights signed a peace treaty at Brzesc Kujawski. They agreed to cease their support for Svitrigaila, and in the future to support only Grand Dukes who had been properly elected jointly by Poland and Lithuania. The treaty did not change the borders that had been set by the Treaty of Melno in 1422. The Teutonic and Livonian Orders no longer interfered in Polish-Lithuanian affairs; instead, Poland and Lithuania would involve themselves in the Thirteen Years' War , the civil war that would tear Prussia in half.

Question: Which event happened first, the Battle of Pabaiskas or the signing of the peace treaty?

Input: Matthias and Frederick III/V had been rivals stretching back to Matthias' succession as King of Hungary in 1458 after the early death of Frederick's Habsburg cousin King Ladislaus the Posthumous. At this time, Frederick held the Holy Crown of Hungary and was a candidate for becoming Hungarian king himself. Matthias, backed by the Bohemian king George of Podebrady whose daughter Catherine he married in 1461, finally prevailed: the two rivals settled their disagreements in 1463 with the Treaty of Wiener Neustadt, in which Frederick recognized the de facto King of Hungary and returned the Holy Crown to Matthias for a heavy ransom. With the consent of Pope Paul II, Matthias invaded Moravia in 1468, instigating the Bohemian War with his former ally George of Podebrad, on the pretext of protecting Catholicism against the Hussite movement - in fact to depose his father-in-law King George. Welcomed by the German nobility in Silesia and the Lusatias, as well as by the Catholic Czechs in Moravia, Matthias acquired these territories for himself and in 1469 pronounced himself Bohemian king in Olomouc. Never able to seize the capital Prague however, Matthias' war would drag on with Podebrad's successor, the Polish prince Vladislaus Jagiellon, until the latter recognized Matthias' gains in the 1478 Treaty of Brno. Emperor Frederick, at the same time stuck in the France-Habsburg rivalry over the Burgundian succession with King Louis XI of France, had initially assisted Matthias against the Hussites in the Bohemian War. Contributing very little however, Frederick soon came to reverse his role and forged an alliance with Podebrad's successor Vladislaus whom he enfeoffed with the Kingdom of Bohemia in 1477. Angered by this action and recalling previous insults, Matthias proceeded to press for a peace with Vladislaus and invaded Frederick's Austrian lands.

Question:
What 1/10 of a decade did Matthias and Frederick III/V had been rivals?