Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/uzunlik-birliklari

Units of length

Medium 1000 ms 64 MB 42%
Share

A length unit number $N$ and the length of a segment $L$ in that unit are given. Units: $1$ — decimetre, $2$ — kilometre, $3$ — metre, $4$ — millimetre, $5$ — centimetre. Find the length of the segment in metres.

The numbers of the length units and the value of each in metres

Input

One line with a unit number $N$ and a real number $L$.

Output

One number — the length in metres, with exactly 4 digits after the decimal point (for example, 0.0250).

Note

$1 \le N \le 5$
$0 \lt L \le 10^{4}$
$L$ is an integer or a number with one digit after the decimal point

Examples

Input #1
1 10
Output #1
1.0000
Input #2
2 50
Output #2
50000.0000

Sign in to submit a solution

Signing up is free and takes a minute.