After big storm all houses in a small village are without light. Your task is to restore light. But when you switch on the lightng of every house neighbour houses also change their state. So try to find the correct sequence of operations using your logic.