f(x) returns "yes" if x is a city, and "no" otherwise.

