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