How long does the file take?

A file of S megabytes is sent over a link of R megabits per second, and the signal takes P milliseconds to reach the other end. Print the time from the first bit leaving until the last bit arrives: the transmission time plus the propagation time.

Use network units: 1 MB = 1 000 000 bytes and 1 Mbps = 1 000 000 bits per second.

Input

One line: S, R and P (decimal numbers; S and R are above 0).

Output

The total time in milliseconds, with 2 decimal places.

Examples

Example 1 · Input
2 10 30
Expected output
1630.00
Example 2 · Input
0.5 100 5
Expected output
45.00

Prompts inside input() are ignored when checking, so input("n: ") is fine.

Hints

Hint 1

Change megabytes to megabits: multiply by 8.

Hint 2

Transmission time in seconds = megabits ÷ megabits per second. Multiply by 1000 for milliseconds.

Hint 3

Add the propagation time, already in milliseconds.

Solution

Show one correct solution (try it yourself first)
s, r, p = map(float, input().split())
transmission = s * 8 / r * 1000
print(f"{transmission + p:.2f}")

Lesson: Delay and throughput →