Sichuan University Programming Contest 2009 Preliminary (Single)

E: Windy's Mod