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