The function f(x) takes a word input, and if the input is the name of a geographical location, it outputs the continent where the location is. Otherwise, it outputs "undefined".

