Problem - 1313C2 - Codeforces