Problem9671--ABC184 —— A - Determinant

9671: ABC184 —— A - Determinant

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 512 MiB

Description

Given is a $2 \times 2$ matrix $A = \begin{bmatrix} a & b \\ c & d \end{bmatrix}$.  
The determinant of $A$ can be found as $ad-bc$.  
Find it.

Input

Input is given from Standard Input in the following format:

```
$a$ $b$
$c$ $d$
```

Output

Print the answer as an integer.

Constraints

-   All values in input are integers.
-   $-100 \le a, b, c, d \le 100$

Sample 1 Input

1 2
3 4

Sample 1 Output

-2
The determinant of $\begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}=−21×4−2×3=−2$.


Sample 2 Input

0 -1
1 0

Sample 2 Output

1

Sample 3 Input

100 100
100 100

Sample 3 Output

0

Source/Category