read s; p=`echo $s | sed 's/10/a/' | tr -d ' '`; ret=`echo "123456789a" | tr "$p" " " | tr -d ' '`; [ a = "${ret}" ] && echo 10 || echo ${ret};