North, South Korean leaders exchange farewell letters