Number With The Given Amount Of Divisors

CodeForces - 27E