Output
Line 1: The rounded distance calculated using the greedy algorithm.
If there is rounding, then it is necessary to indicate in which direction this rounding should be performed.
The Graphs tag is redundant since the puzzle does not imply working with graphs.