The rule implemented by the `f(x)` function is to output the first letter of the input word.

