Sichuan University Programming Contest 2007 Preliminary

I: In a Line