what is the capital of the country whose boarder is germany and poland?