시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 (추가 시간 없음) 1024 MB22971708162276.437%

문제

A Metronome is a mechanical device used by musicians for keeping time. It is a very clever device, based on a spring, an inverted pendulum, and an escapement gear. Milo is learning to play the glockenspiel, and has purchased a metronome to help him keep time. Milo has noticed that for every complete turn (one revolution) of the key, the metronome will give four ticks. Milo wants the metronome to stop at the end of each song that he tries to play.

For a given song, how many revolutions must he wind the key?

입력

The single line of input contains a single integer $n$ ($1 \le n \le 10^5$), which is the length of the song in ticks.

출력

Output a single real number, which is the number of revolutions Milo must turn the metronome's key so that it stops precisely at the end of the song. This number must be accurate to two decimal places.

예제 입력 1

16

예제 출력 1

4.0

예제 입력 2

99

예제 출력 2

24.75

출처

ICPC > Regionals > North America > North America Qualification Contest > ICPC North America Qualifier 2022 F번

  • 문제를 만든 사람: Larry Pyeatt