Hello everyone!
The Codeforces Round #164 for Div.2 participants will start in several hours. Traditionally, the other participants can take part out of competition.
The hero of today's problems is Manao, which has been straining Georgian fellow programmers' minds for several years already. He made it to Codeforces pages thanks to Gerald and Delinur, who have assisted me in round preparation. The problems were also tested by Seyaua, sdya and Aksenov239.
The scoring system will be a little unusual: 500-1000-1500-2500-2500.
Good luck :)
UPD: The contest is over, congratulations to the winners:
You can find the tutorial here.