What was the capital of North Korea and South Korea before they were split?

The capital was Seoul - which is the capital of South Korea today. As you might know, N.Korea's capital now is PyeongYang