((input) => {
  let [a,b,c,d] = input.split(' ').map(BigInt);
  let max = [a*c,a*d,b*c,b*d].reduce((a,b)=>a>b?a:b);
  console.log(max.toString());
})(require("fs").readFileSync("/dev/stdin", "utf8"));