Input (grade 13): The inversion of a major interval is a minor interval, the inversion of an augmented interval is a diminished interval.
Output (grade 5): A major 6th is the inversion of a minor 3rd.