2003' ACM/ICPCѵϰ 8

D: Basic