Team effort gets blaze pupils back to school