($a,$b,$c,$d)=glob<>; $x=$a+$b+$c+$d; $y=$c*3; print$x>$y?$x:$y;