:
lookamb -h -d $* | rcalc -e '$1=1000^$7' | total -1000 | rcalc \
-e 'l2=floor($1/1000^2);l1=floor(($1-l2*1000^2)/1000);l0=$1-l2*1000^2-l1*1000' \
-e 'tot=l0+l1+l2;$3=l2/tot;$2=l1/tot;$1=l0/tot'
