A. 4 ♦
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output
Example
Input
TURN ON A
TURN ON B
WAIT A FEW MINUTES
TURN OFF B
OPEN THE DOOR
LIGHT 1 IS ON
LIGHT 2 IS HOT
Output
A B C