read AB ; A=${AB:0:1} ; B=${AB:2:3} read S N=$(($A+$B)) echo $N $S