Alex Origami Squares#7612

Alex Origami Squares

1 second
128 megabytes
Very easy

Alex is fond of origami — the Japanese art of paper folding. Most origami designs start with a square sheet of paper.

Alex is going to make a present for his mother. The design of the present requires three identical square sheets of paper, but Alex has only one rectangular sheet. He can cut squares from this sheet, but their sides must be parallel to the sides of the original sheet.

Help Alex determine the maximum possible side length of the squares he can cut out.

Input

One line contains two integers and w~(1 \le h, w \le 1000) — the height and width of the sheet of paper.

Output

Print one real number — the maximum possible side length of the squares.

It is always possible to cut three identical squares from an h \times w sheet of paper so that their sides are parallel to the sides of the sheet.

Your answer should be accurate to three decimal places.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading