Given n, find the smallest number for which product of the digits is n, if no such number exists, print -1