Problem - 576C - Codeforces