QOJ.ac

QOJ

Limite de temps : 1 s Limite de mémoire : 256 MB Points totaux : 100 Hackable ✓

#18666. Physical Education is a Math Subject

Statistiques

Physical education class at UCPC Elementary School is approaching. The math teacher, Kipa, who has taken over the gym class because the physical education teacher couldn't make it to school, tossed a ball that was so worn out it didn't even look like a soccer ball anymore and told the kids to play soccer or dodgeball. He then watched from a corner of the sports field as the children played happily with the ball, reminiscing about his own elementary school gym classes.

Young Kipa was physically weak. He found it hard to run for more than a few tens of seconds in soccer, and in dodgeball, if the ball hit him, his body would hurt so much the next day. So he always sat in a corner of the field and just watched his friends having fun. When he got bored, he would doodle on the ground. Watching the children now, he suddenly remembered his younger self. He thought that maybe it was because of those moments of reflection that he came to find math enjoyable. Before he knew it, Kipa was drawing a circle on the ground with a twig, just like he did in elementary school.

Back when he sat on the elementary school field, he wanted to draw a huge circle. Even in young Kipa's eyes, a circle seemed wobbly yet orderly, and he really liked the feeling of roundness. He felt as if the entire field was his own and just wanted to run around. He wanted to run around and draw a circle. But having become a math teacher rather than a gym teacher, Kipa was still not in very good shape for running. So he had to pretend the field was a blackboard, draw a rectangular shape resembling the field, and then draw a circle that fit snugly inside it.

Let us fulfill Kipa's dream for him. Given a rectangular sports field, draw the largest possible circle that can be inscribed inside the field. Then tell Kipa the length of the circle's radius.

Input

The first line contains the length $H$ of one side of the sports field in meters (m). ($5 \leq H \leq 1\,000$)

The second line contains the length $W$ of the other side of the sports field in meters (m). ($5 \leq W \leq 1\,000$)

Output

Output the radius of the largest circle that can be drawn inside the sports field in centimeters (cm). Under the given constraints, this value can be shown to be an integer, so output it as an integer.

Examples

Input 1

8
10

Output 1

400

Input 2

5
13

Output 2

250

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.