Under the terms of the Molotov–Ribbentrop Pact and the German–Soviet Frontier Treaty, the Soviet Union annexed all Polish territory east of the line of the rivers Pisa, Narew, Bug and San, except for the area around Vilnius (known in Polish as Wilno), which was given to Lithuania, and the Suwałki region, which was annexed by Germany. These territories were largely inhabited by Ukrainians and Belarusians, with minorities of Poles and Jews (for numbers see Curzon Line). The total area, including the area given to Lithuania, was 201,000 square kilometres, with a population of 13.2 million. A small strip of land that was a part of Hungary before 1914 was given to Slovakia.