7. At the initial moment, a positive integer $N$ is written on the blackboard. In each step, Misha can choose a positive integer $a>1$ that is already written on the blackboard, erase it, and write down all its positive divisors except itself. It is known that after several steps, there are exactly $N^{2}$ numbers on the blackboard. Find all possible values of $N$.