This is the solution for the High Load challenge 2021 "Gold Rush" https://cups.mail.ru/en/contests/goldrush