Input (grade 13): The president of the organizing committee and the IOC president make their closing speeches, the Games are officially closed, and the Olympic flame is extinguished.
Output (grade 7): The president of the organizing committee and the IOC president make their closing speeches. The Games are officially closed and the Olympic flame is put out.