const main = args => {
  const [a, b, c, d] = args.split(' ').map(arg => +arg);
  const ary = [a * c, a * d, b * c, b * d];
  console.log(Math.max(...ary));
};
main(require('fs').readFileSync('/dev/stdin', 'utf8'));