3. A $10 x 10$ grid is filled with non-negative numbers. It is known that in each (vertical or horizontal) strip of 1 x 3, the sum of the numbers is 9. What is the maximum value that the sum of all numbers in the grid can take?
Answer: 306

Examples of writing answers:

14