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