The function f(x) takes a word as input and returns the country where the city is located. It recognizes most cities and their corresponding countries, but has difficulty with cities that have the same name but are in different countries.

