Input: Ieremia Movilă died in 1606 . In 1607 Stefan Potocki set his brother-in-law , Constantin Movilă , on the Moldavian throne. However, Stefan Potocki was one of the pro-Habsburg magnates and Gabriel Batory, the anti-Habsburg ruler of Transylvania, removed Constantin Movilă in 1611 . The Moldavian throne now fell to Ștefan II Tomșa . A second intervention by Stefan Potocki  in 1612 was a complete failure. Potocki's 7,000 strong army was defeated on 19 July in the Battle of Sasowy Róg  by troops of Tomșa and Khan Temir's Tatars of the Budjak Horde. Stefan Potocki and Constantin Movilă ended their lives in Ottoman captivity in Constantinople. A counter-raid of Tatars and Tomșa on the Commonwealth was stopped by Żółkiewski without a fight, and an agreement between Żółkiewski and Tomșa was signed in October 1612 . Tomșa assured about his friendliness, that he will help to patch up conflict between the Ottoman Empire and the Commonwealth and pledged allegiance to the Polish king. In 1613, when Sigismund signed a de facto anti-Turkish defensive treaty with the Habsburgs, counting on their support for his restoration to the Swedish throne, Poland further moved into the enemy camp from the Ottoman point of view. Hetman Stanisław Żółkiewski, with a show of force, induced Moldavians and Turks to compromise and signed an agreement in 1612 with Ștefan Tomșa at Khotyn.

Question: How many years after Stefan Potocki set Constantin Movilă on the Moldavian throne did Gabriel Batory remove Constantin Movilă?


Input: For their third night game in as many weeks, the Patriots flew to M&T Bank Stadium to face the 4-7 Ravens. On the first drive of the game, a 42-yard Stallworth reception and three Ravens penalties helped set up a 1st and goal from the Ravens' 3-yard line. The Patriots next four plays gained a net of zero yards, and Gostkowksi kicked a 21-yard field goal to give the Patriots a 3-0 lead. After an exchange of punts, the Ravens took the lead with Kyle Boller completing a 4-yard touchdown pass to Derrick Mason after a 70-yard drive. In the second quarter, Baltimore increased its lead when kicker Matt Stover converted a 29-yard field goal to cap a 12-play, 55-yard drive. On the ensuing drive, the Patriots responded with a 9-play, 60-yard drive that included two more Stallworth receptions and two more Ravens penalties and ended in a 1-yard Evans touchdown run. Two possessions later, with 56&#160;seconds remaining the first half, Brady threw his fifth interception of the season, this one to safety Ed Reed, who proceeded to fumble on the return. Watson recovered the fumble and the Patriots went into halftime in a 10-10 tie. On the opening drive of the second half, the Ravens drove 73&#160;yards and regained the lead on a 17-yard run by Willis McGahee, his sixth rush of the 8-play drive. The Patriots answered on their next possession with an 11-play, 72-yard drive that included a dump-off pass to Maroney for 36&#160;yards. A 3-yard touchdown pass from Brady to Moss tied the game again at 17-17. In the first minute of the fourth quarter, Baltimore got the lead again, 24-17, as Boller completed a 1-yard touchdown pass to tight end Daniel Wilcox after an 8-play, 56-yard drive. The Patriots went 3-and-out on their next drive, and a 33-yard Yamon Figurs punt return coupled with a 5-yard Pierre Woods penalty gave the Ravens the ball at the Patriots' 26-yard line with less than 13&#160;minutes remaining in the game. After two McGahee runs for 1&#160;yard and a false start penalty gave the Ravens a 3rd and 14 situation, Boller was intercepted at the Patriots' 1-yard line by Sanders to hold the Ravens scoreless on the drive. Sanders' 42-yard return gave the Patriots the ball at their own 43-yard line, and another Maroney dump-off pass for 43&#160;yards brought the Patriots to the Ravens' 24-yard line. The Patriots then failed to make the first down, and Gostkowski kicked another field goal, this one from 38&#160;yards out, to cut the Ravens' lead to 24-20. The Patriots defense, which gave up almost 60 first half rushing yards to McGahee, held McGahee to 1&#160;yard on the Ravens' next drive and forced a 3-and-out. The Patriots' ensuing drive brought them to the Ravens' 31-yard line before a 10-yard Dan Koppen penalty and incompletion forced another punt. With less than 6&#160;minutes remaining, the Patriots defense again prevented the Ravens offense from completing a first down and got the ball back with 3:30 left in the game. Starting from their own 27-yard line, the Patriots got to midfield on the second play of their drive with a 23-yard Watson reception. An incompletion and 9-yard Faulk catch brought 3rd and 1, where Brady rushed for 2&#160;yards and the first down. After the two-minute warning, another 9-yard Faulk catch on 3rd and 10 gave the Patriots a 4th and 1 from the Ravens' 30-yard line with 1:48 remaining. Brady attempted another sneak and was stopped short of the first, but the play was nullified by a timeout called by Ravens defensive coordinator Rex Ryan just before the snap. Heath Evans lost a yard on the Patriots' next attempt, but a false start penalty by Russ Hochstein nullified the play and set up a 4th and 6. Brady scrambled for the first down and additionally, Ravens cornerback Samari Rolle was penalized for illegal contact to give the Patriots another 5&#160;yards, moving them to the Ravens' 18-yard line with 1:38 left on the clock. A 5-yard Faulk rush and two incompletions gave the Patriots another fourth down situation. Brady's throw to Watson in the end zone fell incomplete, but the Patriots again received a fresh set of downs after Ravens defensive back Jamaine Winborne was called for defensive holding. On 1st and goal from the Ravens' 8-yard line with 55&#160;seconds remaining, the Patriots took their first lead since the first quarter on a Gaffney touchdown reception that was upheld by official review. After the play, Ravens linebacker Bart Scott received two 15-yard unsportsmanlike conduct penalties after throwing an official's flag into the stands, and Reed was flagged for being offsides on the extra point, setting up a Patriots kickoff from the Ravens' 35-yard line. After a Gostkowski touchback on the kickoff, the Ravens completed two passes, bringing them to their own 45-yard line with 8&#160;seconds remaining. Boller threw a Hail Mary pass that was caught by wide receiver Mark Clayton at the Patriots' 3-yard line, but he was tackled shy of the end zone as time expired. The Patriots became the sixth team in NFL history to begin a season 12-0, in a game that was the most-watched program in the history of cable television.

Question:
How many field goals did Gostkowksi kick?