Input (grade 8): Although usually a short melody, it can also be a chord progression or even a simple rhythm.
Output (grade 6): The leitmotif might be a short tune, but it can also be a rhythm or just a chord.