#abc178b. [abc178_b]Product Max
[abc178_b]Product Max
Problem Statement
Given are integers and . If and are integers and and hold, what is the maximum possible value of ?
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
Sample Input 1
1 2 1 1
Sample Output 1
2
If and then . If and then . Therefore, the answer is .
Sample Input 2
3 5 -4 -2
Sample Output 2
-6
The answer can be negative.
Sample Input 3
-1000000000 0 -1000000000 0
Sample Output 3
1000000000000000000