http://codeforces.com/contest/365