2003' ACM/ICPCѵϰ 17

F: Fire! Fire!! Fire!!!