Welcome, dear friends)
We are glad to introduce you regular Codeforces round #151 for Div.2 participants. Traditionally the others can take part out of the competition.
Today's problems were prepared by authors: Pavel Kholkin (HolkinPV) and Gerald Agapov (Gerald). Traditionally thanks to Michael Mirzayanov (MikeMirzayanov) for perfect Codeforces and Polygon systems and Mary Belova (Delinur) for translating the problems.
Score distribution will be standard.
We wish everyone good luck, successful hacks and high rating!
UPD: the contest is over, hope you enjoy it)
Congratulations to winners:
UPD2: you can find the editorial here