read a;echo $a|sed -e "s@[a-zA-Z]@@g" -e "s@\([0-9]\)@\1+@g" -e "s@+\$@@g"|bc