개발자 뺚

[BAEKJOON ONLINE JUDGE] 27389번 : Metronome 본문

Solution/Python

[BAEKJOON ONLINE JUDGE] 27389번 : Metronome

2024. 6. 23. 08:00

시간 제한 : 1 초(추가 시간 없음)

 

메모리 제한 : 1024 MB

 

문제

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  (1 ≤ n ≤ 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.


print(int(input()) / 4)