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