Sichuan University Programming Contest 2009 Preliminary (Single)

H: Take Bus