codeforces264 c accepted