Input: The 49ers would score touchdowns on each of three Cowboys turnovers, all before halftime. Even though the Cowboys held a significant edge in 1st quarter time of possession (13:26 to 1:34), the 49ers had a 21-3 lead due to the turnovers. With the 49ers up 28-3, the Cowboys would find themselves with their largest halftime deficit in a home opener ever. Although the 49ers would not score again in the second half, they would only hold the Cowboys to 14 more points, and win the game.

Question: How many points did the 49ers score in the second half?


Input: The Colts began their season at Reliant Stadium in an AFC South duel against the Houston Texans.  Indianapolis started the season going 3-and-out on their first offensive possession of the new year.  The Texans got good field position with a big punt return from Jacoby Jones to set up a 30-yard field goal to give them a 3-0 lead. The offense continued to struggle throughout the first half, getting two first downs on the next drive, however, eventually having to punt.  The Texans continued to show energy on both offense and defense by scoring two more time, a field goal and a touchdown, giving the Texans a 13-0 lead halfway through the second quarter.  The Colts eventually got the offense going late in the second quarter by scoring on a touchdown reception by Reggie Wayne, which broke the lead down to one possession. Adam Vinatieri made a 20-yard field goal at the end of the first half and the Colts went into the half trailing 13-10. The momentum was seemingly shifting to Indianapolis, until Houston took almost eight minutes off the third quarter clock on a 15-play drive, 13 rushes, that resulted in one of Arian Foster's rushing touchdowns on the day to give Houston a 20-10 lead. Peyton Manning and the offense struggled throughout the third quarter with missed opportunities and continued to shoot themselves in the foot with penalties.  With the start of the fourth quarter Houston scored another touchdown and broke the game open.  The Colts would eventually score two touchdowns late in the game, only when there was no chance of a comeback. With the final score 34-24, the Colts were 0-1 to start a season for the first time since 2008, when they lost to the Chicago Bears.

Question: How many field goals did the Texans kick during the first half?


Input: Osman II designated Öküz Mehmed Pasha once again for the eastern front. Abbas learnt the Ottoman plan was to invade via Azerbaijan, take Tabriz then move on to Ardabil and Qazvin, which they could use as bargaining chips to exchange for other territories. The shah decided to lay a trap. He would allow the Ottomans to enter the country, then destroy them. He had Tabriz evacuated of its inhabitants while he waited at Ardabil with his army. In 1618, an Ottoman army of 100,000 led by the grand vizier, invaded and easily seized Tabriz. The vizier sent an ambassador to the shah demanding he make peace and return the lands taken since 1603. Abbas refused and pretended he was ready to set fire to Ardabil and retreat further inland rather than face the Ottoman army. When the vizier heard the news, he decided to march on Ardabil right away. This was just what Abbas wanted. His army of 40,000 commanded by Qarachaqay Khan was hiding at a crossroads on the way and they ambushed the Ottoman army in a battle at Sarab on 10 September 1618, which ended in complete victory for the Iranians. The beylerbeys of Rumelia, Diyarbakır and Van were among thousands who lost their lives. The new Grand Vizier Damat Halil Pasha took command, continued the invasion. When the Ottoman army started to threaten Ardabil the Safavids sued for peace. The terms of the treaty was similar to those of treaty of Nasuh Pasha with several minor rectifications of the border line. Also, the annual tribute of the Persian side was reduced from 200 loads to 100 loads of silk.

Question: How many demands were made to the Shah?


Input: This time, Pagan could not do anything to retake Martaban because it was facing an existential threat from the north. The Mongols demanded tribute, in 1271 and again in 1273. When Narathihapate refused both times, the Mongols systematically invaded the country. The first invasion in 1277 defeated the Burmese at the battle of Ngasaunggyan, and secured their hold of Kanngai . In 1283-1285, their forces moved south and occupied down to Tagaung and Hanlin. The king fled to Lower Burma in 1285 before agreeing to submit to the Mongols in June 1286. Soon after the agreement was finalised, the king was assassinated in July 1287. The Mongols once again invaded south toward Pagan. Recent research indicates that Mongol armies may not have reached Pagan itself, and that even if they did, the damage they inflicted was probably minimal. But the damage was already done. All the vassal states of Pagan revolted right after the king's death, and went their own way. In the south, Wareru, the man who had seized the governorship of Martaban in 1281, consolidated Mon-speaking regions of Lower Burma, and declared Ramannadesa  independent. In the west too, Arakan stopped paying tribute. The 250-year-old Pagan Empire had ceased to exist.

Question:
How many years passed between the first invasion by the Mongols and the king's submission to the Mongols?