what is the capital of the country whose northern border is germany and poland?