N. Korea taking part in S. Korean Olympics after talks