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