Under construction

Still being built. Things may change

PE Is a Math Subject

Time limit0.5sMemory limit1024 MB

Summary
Given the two side lengths of a rectangular playground in meters, print the radius in centimeters of the largest circle that fits inside it.
Level

Easy2 of 10

Topics
Math, Implementation
Solved
No attempts yet

Problem

UCPC Elementary School's PE class is coming up. The math teacher Kipa is covering for the PE teacher, who could not come to school. Kipa tosses out a ball so worn it no longer looks like a soccer ball, tells the kids to play soccer or dodgeball, and watches them from a corner of the field. Seeing them having fun with the ball, Kipa remembers PE class from when Kipa was an elementary student.

As a child, Kipa was frail. Running for more than a few dozen seconds was hard, and getting hit by the ball in dodgeball left Kipa sore for days. So Kipa always sat in a corner of the field and only watched the friends who were having fun. When bored, Kipa drew on the ground of the playground. Looking at the children now, Kipa remembers those days. Looking back, maybe those quiet hours of thinking are why math became fun. Without quite realizing it, Kipa is drawing a circle in the dirt with a stick, just like back then.

As a child sitting on the playground, Kipa wanted to draw a huge circle. To young Kipa, a circle was wobbly yet orderly, and the fact that it was round appealed a lot. Kipa wanted to run around as if the whole playground were their own, and to draw a circle while running. But now Kipa is a math teacher, not a PE teacher, and still cannot run around much. So Kipa has no choice but to draw a rectangle that resembles the playground, treating the field as a chalkboard, and draw the largest circle that fits snugly inside it.

Let us make Kipa's dream come true. Given a rectangular playground, draw the largest circle that fits inside it. Then tell Kipa the radius of the circle.

Input

The first line contains the length of one side of the playground, HH, in meters (m). (5≤H≤1 0005 \le H \le 1\,000)

The second line contains the length of the other side of the playground, WW, in meters (m). (5≤W≤1 0005 \le W \le 1\,000)

All numbers in the input are integers.

Output

On the first line, print the radius of the largest circle that fits inside the playground, in centimeters (cm). Under the input constraints, this value is always an integer, so print it as an integer.

Examples2

  1. Example 1

    Input
    8
    10
    
    Expected output
    400
    
  2. Example 2

    Input
    5
    13
    
    Expected output
    250