would anyone please share some hints on how to solve this problem,so that i may eventually be able to solve it. The editorial for this problem is of one line(that also is a hint),hence i am not able to solve it?? here is the link to problem :https://mirror.codeforces.com/problemset/problem/261/E .