NEW YORK - The leaders of Japan and South Korea agreed Wednesday to restore sound bilateral relations, with ties having deteriorated for around three years to the worst level in decades over wartime labor and territorial issues.