Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
What is the highest bronze for San Marino with less than 82 total and less than 3 golds?

### Inputs:
table_name: table, columns: ['Nation', 'Gold', 'Silver', 'Bronze', 'Total']

### Response:
SELECT MAX Bronze FROM table WHERE Total < 82 AND Nation = san marino AND Gold < 3