Codeforces 157C: Accepted