Skip to main content

~/algor $ cat contests/round-7/AH

AH. Free fall

Problem AH ICPC rules 1000 ms 64 MB

A body falls from a height of metres with no initial speed (air resistance is ignored). After how many seconds () does it hit the ground, and what is its speed (m/s) at impact?

Free-fall acceleration .

A body falls from height h with acceleration g; it hits the ground after time t at speed v

Input

One positive integer .

Output

One line with two numbers: and , each with exactly 2 digits after the decimal point (for example, 2.02).

Note

Examples

Input #1
20
Output #1
2.02 19.80
Input #2
490
Output #2
10.00 98.00

Sign in to submit a solution

Signing up is free and takes a minute.