The Germans agreed to leave the Baltic states, except for Lithuania (which was later ceded in exchange for oil rich regions of Poland), under the Soviet sphere of influence in the 1939 German–Soviet Pact. The Germans lacked concern for the fate of the Baltic states, and they initiated the evacuation of the Baltic Germans. Between October and December 1939 the Germans evacuated 13,700 people from Estonia and 52,583 from Latvia, who were resettled in Polish territories incorporated into Nazi Germany.