input=${1^^}
base=`echo $input|cut -c 3-4`
base=`echo "=16;$base*2-6"|bc`
targ=`echo $input|cut -c 5-10`

for i in `seq $base`
do
targ="$targ"0
done

echo "target:$targ"

echo "diff:"`echo "=16;ffff0000000000000000000000000000000000000000000000000000/$targ"|bc -l`