Food shortage kept thousands of children out of class