solutions for codeforces.ru problems in haskell