$$_=glob<>for a..f;??|$\>($_=(($a*$_+$b)*$_+$c)*$_+$d." $_ ")?$\=$_:0,??|$h<$_?$h=$_:0for$e..$f;print$h