Input: After the Lithuanians were defeated in the Battle of Streva by the Teutonic Knights in 1348, Liubartas lost all territories except for eastern Volhynia with Lutsk to Casimir and his ally Louis I of Hungary . Liubartas' brothers Algirdas and Kestutis organized several expeditions to Poland and Red Ruthenia. Lithuanians allied themselves with Muscovy: Liubartas married an unnamed daughter of Konstantin of Rostov, a relative of Simeon of Moscow, and Algirdas married Uliana of Tver, sister-in-law of Simeon. In spring 1351, Lubartas was taken prisoner by Louis, but was released in summer after a truce was agreed upon with Kestutis. The deal fell through and more military attacks followed in 1352. Another truce, rather favorable to the Lithuanians, was signed in fall 1352: Lubartas received not only Volhynia and Podolia, but also Belz and Chem. However, already in 1353, Liubartas attacked again. Casimir responded by organizing a large campaign against the pagan Lithuanians with a special permission from Pope Innocent VI. After the campaign did not achieve the desired results, Casimir contemplated an alliance with the Lithuanians. In 1366, Casimir, allied with Siemowit III of Masovia and nephews of Liubartas, resumed the war. As Algirdas was involved in conflicts in the east and Kestutis fought with the Teutonic Knights, Liubartas had to defend alone and was defeated. In fall 1366, a treaty was signed: Liubartas retained only eastern Volhynia with Lutsk and became somewhat dependent on Poland . Casimir awarded his allies: Yuri, son of Karijotas, received Chem, his brother Alexander received Volodymyr-Volynskyi, and Yuri, son of Narimantas, continued to rule Belz.

Question: How many years after the 1351 deal fell through did a treaty that allowed Liubartas to retain only eastern Volhynia finally get signed?

Input: Coming off their Bye Week, the Cardinals went home for a Week 10 fight with the Dallas Cowboys. In the first quarter, Arizona trailed early as kicker Mike Vanderjagt nailed a 28-yard field goal for the only score of the period. In the second quarter, the Cardinals' year-long struggles continued as QB Tony Romo completed a 30-yard TD pass to WR Patrick Crayton. The Cards would respond with a 28-yard field goal by kicker Neil Rackers. Afterwards, Vanderjagt gave the Cowboys some breathing room with a 38-yard field goal as time ran out on the half. In the third quarter, things continued to get worse for Arizona as Romo completed a 51-yard TD pass to WR Terrell Owens for the only score of the period. In the fourth quarter, Dallas would wrap up the game with RB Marion Barber's 5-yard TD run. The Cardinals would get a touchdown as QB Matt Leinart got a 3-yard TD run. However, the Cards would drop their eighth-straight game. With the loss, the Cardinals fell to 1-8.

Question: How many yards were gained on field goals that were exactly the same distance?

Input: In 1592, during the war with Spain, an English fleet had captured a large Portuguese galleon off the Azores, the Madre de Deus, loaded with 900 tons of merchandise from India and China, worth an estimated half a million pounds . This foretaste of the riches of the East galvanized interest in the region. That same year, Dutch merchants sent Cornelis de Houtman to Lisbon, to gather as much information as he could about the Spice Islands. In 1595, merchant and explorer Jan Huyghen van Linschoten, having traveled widely in the Indian Ocean at the service of the Portuguese, published a travel report in Amsterdam, the "Reys-gheschrift vande navigatien der Portugaloysers in Orienten" . The published report included vast directions on how to navigate ships between Portugal and the East Indies and to Japan. Dutch and British interest fed on new information led to a movement of commercial expansion, and the foundation of the English East India Company, in 1600, and Dutch East India Company , in 1602, allowing the entry of chartered companies in the so-called East Indies. In 1602, the Verenigde Oost-Indische Compagnie was founded, with the goal of sharing the costs of the exploration of the East Indies and ultimately re-establishing the spice trade, a vital source of income to the new Republic of the Seven United Provinces.

Question: How many companies were established in 1600 and beyond?

Input: Trying to snap a three-game skid, the Falcons went home and played a Week 9 interconference duel with the San Francisco 49ers. In the first quarter, Atlanta trailed early as 49ers RB Maurice Hicks got a 9-yard TD run. The Falcons responded with RB Warrick Dunn getting a 9-yard TD run. In the second quarter, Atlanta increased its lead with RB Ovie Mughelli getting a 1-yard TD run for the only score of the period. In the third quarter, San Francisco crept close as kicker Joe Nedney got a 49-yard and a 32-yard field goal. Fortunately, in the fourth quarter, the Falcons answered with kicker Morten Andersen getting a 33-yard field goal. The 49ers responded with Nedney kicking a 22-yard field goal, yet Atlanta got the win with Andersen nailing a 27-yard field goal. The struggling Falcons rushing attack had its best performance (to date) with 155 total rushing yards.

Question:
How many field goas were kicked that were over 30 yards?