In the Chinese Tang dynasty, anyone with an education was expected to greet as well as say goodbye to another person in poetic verse composed on the spot.