The function $f$ is graphed below. Each small box has width and height 1. Larry writes the number 3 on his pinky finger. He then applies $f$ to 3 and writes the output on his ring finger. If Larry continues this process of applying $f$ and writing the output on a new finger, what number will Larry write on his tenth finger?