codeforces 252 + misc