Codeforces 227C: Accepted