Problem

Source: St. Petersburg 2019 10.7

Tags: combinatorial geometry, combinatorics, rectangle



In a square $10^{2019} \times 10^{2019}, 10^{4038}$ points are marked. Prove that there is such a rectangle with sides parallel to the sides of a square whose area differs from the number of points located in it by at least $6$.