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