Practice on Toph

Participate in exhilarating programming contests, solve unique algorithm and data structure challenges and be a part of an awesome community.

Board of Numbers

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

    Discussion

    Statistics


    74% Solution Ratio

    Tareq_AbrarEarliest, 6M ago

    Tareq_AbrarFastest, 0.0s

    rased_299Lightest, 0 B

    touhidurShortest, 82B

    Submit

    Login to submit