GYM Problem
Can someone suggest an appraoch to solve problem F of this link !! http://codeforces.me/gym/100610