read sa pa xa read sb pb xb if [ ${pa} = ${pb} ] then echo -1 else if [ ${#pa} > ${#pb} ] then echo $sa else echo $sb fi fi