Problem - 578C - Codeforces