Create Yandex 2013 B

http://algorithm.contest.yandex.com/contest/307/problems/B/?p=1&success=1#submits