#C4516. Taco: Decimal-like Format from Integer
Taco: Decimal-like Format from Integer
Taco: Decimal-like Format from Integer
Given an integer n, your task is to extract the last three digits of its absolute value and format them into a decimal-like string representation. Specifically, let the last three digits (with leading zeros if necessary) be represented as an integer abc. You should output a string formatted as "a.bc"
, where a
is the hundreds digit and bc
are the tens and units digits, with bc
always displayed as a two-digit number.
For example, if the last three digits are \(005\) then the answer is 0.05
and if they are \(123\) the answer is 1.23
. Note that the sign of the input is ignored.
The mathematical operation can be described in \(\LaTeX\) as follows:
Given an integer \(n\), let \(d = |n| \bmod 1000\). Then, output the string representation of \(\left\lfloor \frac{d}{100} \right\rfloor\) concatenated with a decimal point and the two-digit representation of \(d \bmod 100\).
inputFormat
The input consists of a single integer \(n\) provided via standard input.
outputFormat
Output a single string representing the formatted number as described. The output should be printed to standard output.
## sample5
0.05