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.
In one line, you are given four real numbers , , , . The area of each rectangle does not exceed 2 \times 10^9.
Output a single number: the side length of the resulting square.
Example 1