eolymp
bolt
Try our new interface for solving problems
Problems

Alex Origami Squares

Alex Origami Squares

Alex is fond of origami --- 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. Present's design requires three equal square sheets of paper, but Alex has only one rectangular sheet. He is able to cut out squares of this sheet, but their sides should be parallel to the sides of the sheet. Help Alex to determine the maximum possible size of the paper squares he is able to cut out. \InputFile The single line contains two integers $h$ and $w\:(1 \le h, w \le 1000)$ --- the height and the width of the sheet of paper. \OutputFile Output a single real number --- the maximum possible length of the square side. It should be possible to cut out three such squares of $h \cdot w$ sheet of paper, so that their sides are parallel to the sides of the sheet. Your answer should be precise up to three digits after the decimal point. \includegraphics{https://static.eolymp.com/content/ql/qlhg71sg3d7njchm1arppjc8d0.gif}
Time limit 1 second
Memory limit 128 MiB
Input example #1
210 297
Output example #1
105.0
Input example #2
250 100
Output example #2
83.33333333333333
Source 2015 ACM NEERC, Northern Subregion, October 24, Problem A