South Korea leaves door open for talks with North