Problems
331 - Diagonal II
SUBMIT PROBLEM

Diagonal II

Time Limit: 1 sec

 

The Problem

Sam got a new table. She wants to turn it into a pool table. For that she wants to draw diagonal lines in the table. Can you help her with that?

Note: The Diagonal of a Rectangle is √ (height2 + width2)

 

 

 

 

The Input

The input file contains a series of line. Each line contains an integer number Height of the table, H (H <= 9999). Width is 1.5 times of the Height. Input is terminated by EOF

 

The Output

For each line of input the output will show the Length of Diagonal line is drawn in the table rounded to 2 decimal points.

 

Sample Input

625

225

12

 

Sample Output

1126.73

405.62

21.63

 

 

 

 

 

Problem Setter: Samia Safa Ahmed