Input (grade 11): The Head of this house is the Transfiguration teacher, Minerva McGonagall, and the house ghost is Nearly Headless Nick.
Output (grade 2): Nearly Headless Nick is the house ghost.