100 atcoder#ABC196A. [ABC196A] Difference Max

[ABC196A] Difference Max

Score : 100100 points

Problem Statement

Given are integers aa, bb, cc, and dd. We will choose integers xx and yy such that axba \leq x \leq b and cydc \leq y \leq d. Find the maximum possible value of xyx - y here.

Constraints

  • All values in input are integers.
  • 100ab100-100 \leq a \leq b \leq 100
  • 100cd100-100 \leq c \leq d \leq 100

Input

Input is given from Standard Input in the following format:

aa bb

cc dd

Output

Print the answer.

0 10
0 10
10

(x,y)=(10,0)(x, y) = (10, 0) achieves the maximum value xy=10x - y = 10.

-100 -100
100 100
-200
-100 100
-100 100
200