How long was the public agreement between Germany and the Soviets?