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