Task: Question Answering
Input (English): Context: Soviet troops approached the Lithuanian territory on December 12, 1918. About 5,000 of them were Lithuanians. Three divisions were employed: Pskov division , International Division , and 17th Division . The divisions did not have a common military commander. Later more units were sent from Russia. The soviets also recruited partisan groups behind the front lines. Soviet soldiers were poorly supplied and had to support themselves by requisitioning food, horses, and clothes from local residents. Lithuania could not offer serious resistance as at the time its army consisted only of about 3,000 untrained volunteers. Only local partisans, armed with weapons acquired from retreating Germans, offered brief resistance. Red Army captured one town after another: Zarasai and Svencionys , Utena , Rokiskis , Vilnius , Ukmerge and Panevezys , Siauliai , Telsiai . That accounted for about of the Lithuanian territory. The front somewhat stabilized when Soviet forces were stopped near the Venta River by Latvian and German units . Also Germans slowed down withdrawal of their troops after the Spartacist uprising was subdued on January 12. Southern Lithuania was a little better protected as Germans retreated from Ukraine through Hrodna. To prevent fights between retreating Germans and the Red Army, the Soviets and Germans signed a treaty on January 18. The treaty drew a temporary demarcation line that went through Daugai, Stakliskes, and 10 kilometres east of Kaisiadorys-Jonava-Kedainiai railway. That barred Bolshevik forces from directly attacking Kaunas, Lithuania's second-largest city. The Red Army would need to encircle Kaunas and attack through Alytus or Kedainiai. The operation to take Kaunas began on February 7. 
 Question: What happened first, Germans signed a treaty or the operation to take Kaunas began?
Output (English): germans signed a treaty