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

~/algor $ cat problems/integer-eng-yaqin-onlik

Nearest ten

Medium 1000 ms 64 MB 39%
Share

An integer $n$ is given. Round it to the nearest ten, that is, find the nearest number divisible by $10$. If the last digit is $5$, round up: $15$ gives $20$ and $14$ gives $10$.

Rounding a number to the nearest ten on the number line

Input

One integer $n$.

Output

One integer — the rounded number.

Note

$0 \le n \le 10^{9}$

Examples

Input #1
14
Output #1
10
Input #2
15
Output #2
20

Sign in to submit a solution

Signing up is free and takes a minute.