Problem - 1284C - Codeforces