Below is the table of values of a function. Write the output when the input is n.

input 4 7 8 n
output 1 4 5

The output when the input is n is 5.

To find the output when the input is n, we need to identify the value of n in the input column and find its corresponding value in the output column.

Looking at the table, we can see that when the input is 4, the output is 1. When the input is 7, the output is 4. And when the input is 8, the output is 5.

However, the table does not have a specific value for n in the input column. This means that we don't have the exact output for when the input is n.

Therefore, we cannot determine the specific output when the input is n based on the given table.