codeforces 230 C not accepted