The function f(x) takes a word input and, if the input is a geographical location (city), it outputs the continent on which that location is situated. If the input is not a geographical location, it outputs "undefined."

