Codeforces 302C: Accepted