I am solving this problem and I am unable to solve it. I read the editorial but don't understand it. I feel sad to not even understand the editorial of a 1400 rated problem. https://mirror.codeforces.com/problemset/problem/388/A
Can someone please explain this to me? Thanks.