Hello guys, I was solving this problem (http://codeforces.me/contest/161/problem/D).
After trying for sometime , I read the editorial of the problem and I am not being able to understand the meaning of this line.
Can anyobdy help me with this?
I basically want to understand about logic or proof behind this.