Latvia states of Northern and Eastern Europe were divided into German and Soviet "spheres of influence". In the north, Latvia, Finland and Estonia were assigned to the Soviet sphere. A week later, on 1 September 1939, Germany and on 17 September, the Soviet Union invaded Poland. After the conclusion of the Molotov-Ribbentrop Pact, most of the Baltic Germans left Latvia by agreement between Ulmanis' government and Nazi Germany under the Heim ins Reich programme. In total 50,000 Baltic Germans left by the deadline of December 1939, with 1,600 remaining to conclude business and 13,000 choosing to remain in Latvia. Most of
Finland–Russia border Finland–Russia border The Finnish–Russian border is the roughly north/south international border between the Republic of Finland (EU member) and the Russian Federation (CIS). Some 1,340 km (833 miles) long, it runs mostly through uninhabited taiga forests and sparsely populated rural areas, not following any particular natural feature or river. It is also part of the external border of both the political and economic union; European Union (EU) and the loose confederation; Commonwealth of Independent States (CIS). Border crossings are controlled and patrolled by the Finnish Border Guard and Border Guard Service of Russia, who also enforce border zones (0.1–3 km