tasks from http://codeforces.ru