((input) => {
  let [a,b,c,d] = input.trim().split(' ').map(Number);
  let max = Math.max(a*c,a*d,b*c,b*d);
  if (max === 0) max = 0;
  console.log(max);
})(require("fs").readFileSync("/dev/stdin", "utf8"));