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

### Instruction:
When 8 is the public and the result is safe what is the highest rank?

### Inputs:
table_name: table, columns: ['Rank', 'Couple', 'Judges', 'Public', 'Total', 'Vote percentage', 'Result']

### Response:
SELECT MAX Rank FROM table WHERE Result = Safe AND Public = 8