Codeforces Good Bye 2025 Problem C Solution