atcoder#ABC305A. [ABC305A] Water Station

[ABC305A] Water Station

Score : 100100 points

Problem Statement

There is an ultramarathon course totaling 100  km100\;\mathrm{km}. Water stations are set up every 5  km5\;\mathrm{km} along the course, including the start and goal, for a total of 2121.

Takahashi is at the N  kmN\;\mathrm{km} point of this course. Find the position of the nearest water station to him.

Under the constraints of this problem, it can be proven that the nearest water station is uniquely determined.

Constraints

  • 0N1000\leq N\leq100
  • NN is an integer.

Input

The input is given from Standard Input in the following format:

NN

Output

Print the distance between the start and the water station nearest to Takahashi, in kilometers, in a single line.

53
55

Takahashi is at the 53  km53\;\mathrm{km} point of the course. The water station at the 55  km55\;\mathrm{km} point is 2  km2\;\mathrm{km} away, and there is no closer water station. Therefore, you should print 5555.

21
20

Takahashi could also go back the way.

100
100

There are also water stations at the start and goal. Additionally, Takahashi may already be at a water station.