Side of the square#1359

Side of the square

1 second
64 megabytes
Very easy

Find the integer length of the side of the square that can be obtained from two rectangles of sizes a \times b and c \times d by cutting them into rectangles and then assembling them to form a square of the largest possible area.

Input

In one line, you are given four real numbers , , , . The area of each rectangle does not exceed 2 \times 10^9.

Output

Output a single number: the side length of the resulting square.

Examples

Example 1

Loading
Loading