Hi everyone. I was solving problem https://codeforces.me/contest/1759/problem/E and my solution is this: https://codeforces.me/contest/1759/submission/228398584
but unfortunately i failed test 3. can you help me to clarify which part of my submission is wrong