In this task, you are given a question and a context passage. You have to answer the question based on the given passage.

Example input: what is the first event mentioned?, Context: The Russian Revolution is the series of revolutions in Russia in 1917, which destroyed the Tsarist autocracy and led to the creation of the Soviet Union. Following the abdication of Nicholas II of Russia, the Russian Provisional Government was established. In October 1917, a red faction revolution occurred in which the Red Guard, armed groups of workers and deserting soldiers directed by the Bolshevik Party, seized control of Saint Petersburg (then known as Petrograd) and began an immediate armed takeover of cities and villages throughout the former Russian Empire.
Example output: Russian Revolution
Example explanation: This is a good example, and the Russian Revolution is the first event mentioned.
Q: What did Rajagriha serve as?, Context: Magadha (Sanskrit: मगध) formed one of the sixteen Mahā-Janapadas (Sanskrit: "Great Countries") or kingdoms in ancient India. The core of the kingdom was the area of Bihar south of the Ganges; its first capital was Rajagriha (modern Rajgir) then Pataliputra (modern Patna). Magadha expanded to include most of Bihar and Bengal with the conquest of Licchavi and Anga respectively, followed by much of eastern Uttar Pradesh and Orissa. The ancient kingdom of Magadha is heavily mentioned in Jain and Buddhist texts. It is also mentioned in the Ramayana, Mahabharata, Puranas. A state of Magadha, possibly a tribal kingdom, is recorded in Vedic texts much earlier in time than 600 BC. Magadha Empire had great rulers like Bimbisara and Ajatshatru.
A:
capital