Board of Numbers

Replay of SCB-PA Inter Sc...
Limits 1s, 512 MB

Imagine you are working for a software company. The company is interested in making mobile games and your first assignment is to make one. The idea of the game is fairly simple. at the start of the game, the player will get a 2×2 board with one integer number in each cell. The user will have to tap on any two different cells and will get points equal to the products of numbers on that two cell. Since you are a programmer, you are wondering what would be the highest point any player can get from a given scenario.

Input

The Input consists of two line , each line contains two integer ai and aj (-109 ≤ ai , j ≤ 109).

Output

Print the maximum possible result.

Sample

InputOutput
1 1
1 1
1

Submit

Login to submit.

Statistics

75% Solution Ratio
Tareq_AbrarEarliest, Oct '19
Tareq_AbrarFastest, 0.0s
rased_299Lightest, 0 B
touhidurrrShortest, 82B
Toph uses cookies. By continuing you agree to our Cookie Policy.