a row n cell give initially white use stamp stamp neighboring cell red blue a stamp rotate ie way colorbluetextttbcolorredtextttr colorredtextttrcolorbluetextttbdure use stamp completely fit give n cell partially outside cell the stamp apply multiple time cell each usage stamp recolor cell stampfor example possible sequence stamp picture colorbluetextttBcolorredtextttRcolorbluetextttBcolorbluetextttBtextttW textttWWWWW textttWWcolorbrownunderlinecolorredtextttRcolorbluetextttBtextttW colorbrownunderlinecolorbluetextttbcolorredtextttrcolorredtextttrcolorbluetextttbtextttw colorbluetextttbcolorbrownunderlinecolorredtextttrcolorbluetextttbcolorbluetextttbtextttw here textttW colorredtextttr colorbluetextttB represent white red blue cell respectively cell stamp mark underlinegiven final picture possible stamp zero time