2004' ACM/ICPCѵϰ 6

F: Fold