30. On the board, there are param1 natural numbers. It is known that the sum of any five of them is not less than param2. Find the smallest possible value of the sum of all the numbers written on the board.

| param1 | param2 | Answer |
| :---: | :---: | :---: |
| 20 | 117 |  |
| 18 | 97 |  |
| 19 | 107 |  |
| 26 | 153 |  |
| 17 | 123 |  |
30. On the board, ragat1 natural numbers are written. It is known that the sum of any five of them is not less than param2. Find the smallest possible value of the sum of all numbers written on the board.

| param1 | param2 | Answer |
| :---: | :---: | :---: |
| 20 | 117 | 477 |
| 18 | 97 | 357 |
| 19 | 107 | 415 |
| 26 | 153 | 804 |
| 17 | 123 | 423 |