3. There are 12 students in the class. Each of them was asked how many friends they have in the class. Each number \( n \) was either mentioned exactly \( n \) times or not at all. What is the maximum value that the sum of all the numbers mentioned can take?
Answer: 90

Only digits are allowed as input.

## Problem 5. (3 points)