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?
Graph:
https://latex.artofproblemsolving.com/3/d/8/3d845acda8bb0ab8452359316109a4b632d77bc5.png