Input: In November the Polish warrior-king Sobieski launched a major campaign on the right bank. Bar, Bratslav and Nemiroff surrendered to the Poles but Rashkov was taken by storm and the garrison slaughtered. Kalnik gave up and took the oath of allegiance to the Polish crown. Polish banners  under Dmitry Vishnevetsky and Stanislav Yablonovsky crushed Cossack and Tartar troops at Zhornishch and Nemiroff, and Polish-Lithuanian troops under Nicholas Senyavskaya and Prince Michael Casimir Radziwill defeated the enemy in the battles at Chyhyryn and Pavoloch. At the Battle of Pavoloch 4,000 Tatars under the Nureddin-Sultan was broken. The Nureddin-Sultan was killed. In autumn 1674 the Sultan organized a campaign against the Zaporozhian Sich, and sent 15,000 select Janissaries came by sea to Crimea. The Turkish government had decided to seize the Sich and destroy all the Zaporozhian Cossacks. By order of the Sultan, Selim Giray and 40,000 Tatars joined the Turkish campaign against Sich. In January 1675 15,000 Janissaries and 40,000 Tatars under Khan Selim Giray approached the Sich without being detected. Tartars surrounded the Sich and Janissaries tried to enter it, but the Zaporozhians repulsed the attack and decisively defeated the Turkish troops. 13,500 Janissaries were killed and the rest fled. The Khan retreated from the Sich back to the steppe.

Question: Which happened first, Sobieski's campaign on the right bank, or Kalnik taking the oath of allegiance to the Polish crown?


Input: Trying to snap a two-game losing streak, the Vikings returned home for an NFC North duel with the Green Bay Packers. With regular starting quarterback Tarvaris Jackson recovering from injuries, Kelly Holcomb started in his place. In the first quarter, the Vikings trailed early as Brett Favre threw a 16-yard touchdown pass to Greg Jennings, surpassing Dan Marino with the 421st touchdown pass of his career. After Favre was honored for his accomplishment, Minnesota narrowed the margin between the two teams to a single point with field goals of 44 and 35 yards from kicker Ryan Longwell, before Mason Crosby hit a 28-yard field goal to restore a four-point lead for the Packers going into halftime. In the third quarter, Crosby and Longwell cancelled each other out with field goals from 44 yards and 48 yards, respectively. In the fourth quarter, Crosby made a 33-yard field goal, before Favre completed a 33-yard touchdown pass to James Jones. Minnesota tried to rebound with Holcomb completing a 15-yard touchdown pass to rookie wide receiver Sidney Rice. The Vikings failed with an attempted onside kick, but two plays later Chad Greenway recovered a fumble by Favre, giving the Vikings just under 2 minutes to go 54 yards for a game-tying touchdown. However, after moving into Green Bay territory, Holcomb was subsequently intercepted by Atari Bigby, allowing Favre to kneel out the game. Adrian Peterson ran 12 times for 112 yards, making him the first rookie running back since Chuck Foreman to rush for 100 yards in each of his first three games as a Vikings starter.

Question: How many field goals did Crosby kick in the fourth quarter?


Input: Tampa Bay took the lead 17-15 with a Rian Lindell field goal with 34 seconds remaining. However, on the ensuing Jets drive, rookie quarterback Geno Smith scrambled for a 10-yard run to the right sideline. A personal foul penalty was called on Lavonte David of the Buccaneers for a late hit out-of-bounds, which advanced the Jets to the Buccaneers 30 yard line. With 2 seconds left in regulation, Nick Folk kicked a 48-yard field goal, and the Jets won the game 18-17.

Question: How many yards was the difference between Lindell's field goal and Folk's field goal?


Input: The causes of the Polish-Ottoman War of 1672-76 can be traced to 1666. Petro Doroshenko Hetman of Zaporizhian Host, aiming to gain control of Ukraine but facing defeats from other factions struggling over control of that region, in a final bid to preserve his power in Ukraine, signed a treaty with Sultan Mehmed IV in 1669 that recognized the Cossack Hetmanate as a vassal of the Ottoman Empire.:273 In the meantime, Commonwealth forces were trying to put down unrest in Ukraine, but were weakened by decades long wars ). Trying to capitalize on that weakness, Tatars, who commonly raided across the Commonwealth borders in search of loot and plunder, invaded, this time allying themselves with Cossacks under hetman Doroshenko. They were however stopped by Commonwealth forces under hetman John Sobieski, who stopped their first push , defeating them several times, and finally gaining an armistice after the Battle of Podhajce. In 1670, however, hetman Doroshenko tried once again to take over Ukraine, and in 1671 Khan of Crimea, Adil Giray, supportive of the Commonwealth, was replaced with a new one, Selim I Giray, by the Ottoman sultan. Selim entered into an alliance with the Doroshenko's Cossacks; but again like in 1666-67 the Cossack-Tatar forces were dealt defeats by Sobieski. Selim then renewed his oath of allegiance to the Ottoman Sultan and pleaded for assistance, to which the Sultan agreed. Thus an irregular border conflict escalated into a regular war in 1671, as the Ottoman Empire was now prepared to send its regular units onto the battlefield in a bid to try to gain control of that region for itself.:646

Question:
How many different wars took place?