my ($max1, $max2, $min1, $min2, $i) = (0,0,0,0,0, );