for birthday Alice receive interesting gift friend the Light Square the Light Square game play n time N lightbulbs square board magical lightbulb bar size n times 1 magical property at start game light square board magical bar turn the goal game transform start light square board pattern pattern magical bar rotate square board the magical bar work follow it place row column the orientation magical lightbulb leave right magical property the entire bar need fully place board the light magical bar change if light magical bar light square place switch light square board switch light the magical bar infinite number time Alice hard time transform square board pattern Bob give can help transform board let know impossible if multiple solution print