Sichuan University Programming Contest 2007 Final

A: Aged Network