1611 - I2P(I) 2019_Spring_Chen_Lab1 Scoreboard

Time

2019/03/07 19:30:00 2019/03/07 21:00:00

Clarification

# Problem Asker Description Reply Replier Reply Time For all team

# Problem Pass Rate (passed user / total user)
12131 No, I don't know the way, but....
12129 Do you know de way?

12131 - No, I don't know the way, but....   

Description

Knuckles, from Ugandan, is finding his queen. Soon, he met Sonic the Hedgehog. "Do you know de way to our queen?", Knuckles asked. "No, I don't know the way, but...", not until Sonic finish his words, Knuckles spits him with a speed faster than sound! "I don't know the way But I DO know the distance between you and your queen!" Knukcles soon claps for him. However, Sonic seems very angry. He decides not telling Knuckles the answer directly, but give him a puzzle to solve. Although Knuckles is smart enough, he is too busy to solve it alone, now he asks you for help. Could you help him?


Sonic will give Knuckles two numbers A and B, which may be non-negative integers or floats.

A is the distance between Knuckles and an unknown site, B is the distance between the unknown site and the queen.

Knuckles wants to know the longest distance between him and his queen, so that he could make the worst plan. You're going to write a program to help him. Go ahead!

Input

The input contains only one testcase.

The first and the only line contains A and B, seperate with a space.

Output

The output contains only one number.

Output the longest distance between Knuckles and his queen. You should output the number to three decimal places. Note that if the decimal place is 0, you still need to output them. For example: 32 -> 32.000, 15.23 -> 15.230

Remember to print '\n' at the end of the output.

Sample Input  Download

Sample Output  Download

Tags




Discuss




12129 - Do you know de way?   

Description

Knuckles, from Ugandan, is finding his queen. He accidentally find a ancient stele which curved two numbers on it. He reckon it as a clue to find his queen. Knuckles is very smart. He soon realizes that the rule between numbers.


The stele contains two numbers l,r which means the range from l ~ r .

Knuckles wants to find two different numbers x,y in the range, 

in other word l <= x < y <= r.

And Knuckles also wants that x divides y( y%x == 0 ). 

Knuckles thinks that the minimum sum of x+y will be the clue to find the queen. Because the stele is from Ugandan gods there is always an answer.

Help Knuckles find his queen or he will spit on you.

Input

input contains two integer l and r ( 1 <= l < r <= 109 )

Output

output contains two integer x and y ( l <= x < y <= r ) which x divides y.( remember print \n at the end of output and x ,y are seperated by a blank.)

Sample Input  Download

Sample Output  Download

Tags




Discuss