Instructions: In this task, you're given a question, along with three passages, 1, 2, and 3. Your job is to determine which passage can be used to answer the question by searching for further information using terms from the passage. Indicate your choice as 1, 2, or 3.
Input: Question: The rightful heir to the Hungarian throne according to the Treaty of Nagyvarad was a king from which country? Passage 1:The famous and influential Swedish filmmaker, Ingmar Bergman, rose to prominence in the fifties. He began making films in the mid-forties, and in 1955, he made Smiles of a Summer Night, which brought him international attention. A year later, he made one of his most famous films, The Seventh Seal. In the 1960s, Bergman won the Academy Award for Best Foreign Language Film for two consecutive years, with The Virgin Spring (Jungfrukällan) in 1960 and Through a Glass Darkly (Såsom i en spegel) in 1961. He won the award again in 1983, for the early twentieth-century family drama Fanny and Alexander (Fanny och Alexander). Bergman has also been nominated for the Best Picture award once, with the 1973 Cries and Whispers (Viskningar och rop), the story of two sisters watching over their third sister's deathbed, both afraid she might die, but hoping she does. The film lost to The Sting, and oddly enough, it was not nominated in the Foreign Language Film category. It also gave Bergman the first of three nominations for Best Director. Ingmar Bergman also won four Golden Globe Awards for Best Foreign Language Film.
 Passage 2:Auckland was New Zealand's second capital from 1841 until 1865, when Parliament was permanently moved to Wellington after an argument that was had for one decade. The initial form of government was an executive council formed of public servant appointed by and responsible to the governor. This changed when the New Zealand Constitution Act 1852, an Act of the Parliament of the United Kingdom that granted self-government to the Colony of New Zealand, was received. This allowed for a bicameral General Assembly (or Parliament), consisting of the Governor, an appointed Legislative Council and an elected House of Representatives, with an Executive Council nominally appointed by the Governor. It also allowed for provincial governments, and six provinces were initially established. The first general election was held in 1853.
 Passage 3:In 1530 John Zápolya appointed him as the provost of the Buda cathedral and as a royal secretary. Between 1530-1539 he was also the deputy of the King and after his death he remained with his widow, Isabella Jagiellon. In 1541 he moved with her to Transylvania, but he mostly traveled fulfilling diplomatic services because of his disagreement with cardinal Juraj Utješinović's policy of claiming the Hungarian throne for Isabella's and Zápolya's infant son (instead of conceding it to Ferdinand I as per Treaty of Nagyvárad). Utješinović, appointed by Zápolya as a guardian of his son, John Sigismund Zápolya, fought against Ferdinand and allied himself with the Ottoman Empire.

Output:
3