The rule applied by the function f(x) is to return the continent where the input word is located.

