#16Easy
Integer and fractional part
Time: 1 s · Memory: 256 MB
- Variables and types
Statement
You are given a non-negative real number . Find its integer part and its fractional part. For example, has integer part and fractional part .
Input format
A single real number () with at most 2 digits after the decimal point; the point may be absent (for example, 7).
Output format
A single line: the integer part as an integer, then the fractional part with exactly 2 digits after the decimal point.
Examples
Input
3.75
Output
3 0.75
Input
12.5
Output
12 0.50
Note
Converting a real number to an integer drops the fractional part: Python — int(x), C++ — (long long)x, Go — int64(x). The fractional part is minus the integer part.
Use double (float64 in Go): float cannot store exactly.
