read b;factor $b|cut -d' ' -f 2-|tr ' ' '\n'|awk -v num="$b" 'BEGIN {a=1} {a*=$1;num/=$1;print a" "num}'|while read line;do for i in $line;do echo -n $i|wc -c; done|sort -n|tail -1; done|sort -n|head -1
