Codeforces round #272 div 2.