Air conditionaers

The objective of this puzzle is to turn off all rooms' air conditioners. If you touch a room with a man, you can turn OFF or ON the air conditioner and neighbors.