suppose campus class day day as hurry classroom surprisingly find seat occupy Today friend go class find seat occupiedthe classroom contain n row seat m seat row then classroom represent n times m matrix the character represent seat mean seat occupy you need find k consecutive seat row column arrange seat friend your task find number way arrange seat two way consider different set place student occupy differ