The rule implemented by f(x) is to return the continent where the city associated with the input word is located.

