Input (grade 8): The perfect numbers' final digits would go 6, 8, 6, 8, alternately.
Output (grade 6): The perfect numbers would alternately end in 6 or 8.