### Instruction: The function $f$ is defined on the set of integers and satisfies \[f(n)= \begin{cases}  n-3 & \mbox{if }n\ge 1000 \\  f(f(n+5)) & \mbox{if }n<1000. \end{cases}\]Find $f(84)$. Please write a program to solve it.### Response: def f(n):
    if n>=1000:
        return n-3
    else:
        return f(f(n+5))

print(f(84))