Bokos tribus have $2021$ closed chests, we know that every chest have some amount of rupias and some amount of diamonts. They are going to do a deal with Link, that consits that Link will stay with a amount of chests and Bokos with the rest. Before opening the chests, Link has to say the amount of chest that he will stay with. After this the chests open and Link has to choose the chests with the amount that he previously said. Link doesn´t want to make Bokos angry so he wants to say the smallest number of chest that he will stay with, but guaranteeing that he stay with at least with the half of diamonts, and at least the half of the rupias. What number does Link needs to say?
Problem
Source: Mathematics Regional Olympiad of Mexico Southeast 2020 P3
Tags: combinatorics, number theory