SCU 2006 warmup contest 19

A: Print Words in Lines