/ /,$a+=$',$b+=$`for<>;print 1+($a<$b?$a:$b)