read s if ((s >= 100)); then echo ${s:0:${#s}-2} else echo 0 fi