Rounding

Write a program that reads a real number x ≥ 0 and prints ⌊x⌋ (the floor
of x), ⌈x⌉ (the ceiling of x), and the rounding of x.

Input

Input consists of a real number x ≥ 0.

Output

Print the floor of x, the ceiling of x, and the integer number closer to
x (⌈x⌉ if there is a tie).

Problem information

Author: Jordi Petit

Generation: 2026-01-25T11:58:50.486Z

© Jutge.org, 2006–2026.
https://jutge.org
