Problem - 600C - Codeforces