read s ARR=(${s//,/ }) echo $((ARR[0]-1))