<>;($r,$r)=sort{$b<=>$a}keys%{{(($a=<>)+($b=<>),$a+($c=<>),$b+$c)x2}};print$r||'"assert"'