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://codeforces.me/problemset/problem/261/E .