<>=~$";$k=-($==$');//,$k+=$-=($t+=$-=($k+=$')-($t+=$`)-$=)-$k-$=for<>;print$t>$k?$t:$k