Instructions: This task involves creating answers to complex questions, from a given passage. Answering these questions, typically involve understanding multiple sentences. Make sure that your answer has the same type as the "answer type" mentioned in input. The provided "answer type" can be of any of the following types: "span", "date", "number". A "span" answer is a continuous phrase taken directly from the passage or question. You can directly copy-paste the text from the passage or the question for span type answers. If you find multiple spans, please add them all as a comma separated list. Please restrict each span to five words. A "number" type answer can include a digit specifying an actual value. For "date" type answers, use DD MM YYYY format e.g. 11 Jan 1992. If full date is not available in the passage you can write partial date such as 1992 or Jan 1992. If you find multiple spans, please add them all as a comma separated list. Please restrict each span to five words.
Input: Passage: Having achieved religious independence, Bulgarian nationalists focused on gaining political independence as well. Two revolutionary movements started to develop in the beginning of the 1870s: the Internal Revolutionary Organisation and the Bulgarian Revolutionary Central Committee. Their armed struggle reached its peak with the April Uprising which broke out in 1876. It resulted in the Russo-Turkish War of 1877-1878, and led to the foundation of the third Bulgarian state after the Treaty of San Stefano. The treaty set up a Principality Bulgaria which territory included the wide area between the Danube and the Balkan mountain range, most of today Eastern Serbia, Northern Thrace, parts of Eastern Thrace and nearly all of Macedonia. At that time the clergy's shifts from the Orthodox to the Catholic Church and vice versa were symptomatic of the foreign powers' game that the clergy got involved after the 1878 Berlin Treaty, that partitioned the stipulated territory of the new Principality. Thus, in the interplay between the Orthodox and the Uniat doctrine, Bulgaria supported the Orthodox Exarchate. Russia supported Bulgaria. The Greek Patriarchate of Constantinople supported the Greek national idea. France and the Habsburg Empire supported the Uniats. The Ottoman Empire's attitude was depending on how it had to balance its own interests in the game with the Great Powers.
Question: How many years after the April Uprising was the Berlin Treaty in effect?
Answer type: Number
Output:
2.