Finding places to sleep in Chang'an