eolymp
bolt
Try our new interface for solving problems
Problems

Duelists

Duelists

\includegraphics{https://static.e-olymp.com/content/52/522d230178a44253bfb4cfe2ac183b08f4445c90.jpg} \textbf{"Among the open valley...". 1883.} \textit{"Among the open valley..." - classic Shishkin. The artist often fond of sending poetic motifs, which he saw in nature. So, following the once-popular song, AF Merzlyakov in this picture he was trying to express the greatness of the mighty lonely oak, towering among latitude fields.} \textit{Among the open valley, On a smooth adjustment, Bloom, grow tall oak In the powerful beauty. High spreading oak, They have all one in the eyes; One, one, poor thing How to Recruit on the clock! Does the red sun rises - Anyone under the canopy to take? Hit the weather - Who will defend? Oh, boring lonely And a tree grow! Ah, bitter, bitter dashing No dear life to lead!} Among the open valley Peter Ivanovich, and Ilya Vasilevitch decided to investigate the relationship in a duel. But none of them wanted to die. Therefore, they agreed that each of them comes to an oak (meeting place) at random time between \textbf{5} and \textbf{6} o'clock in the morning and, after waiting for an opponent \textbf{n} minutes, is removed. In case of arrival of the latter in this duel will take place n minutes. Calculate the probability that the duel will end duel. \InputFile Each line is a separate test and contains an integer \textbf{n} (\textbf{0} < \textbf{n} ≤ \textbf{60}). \textbf{ Output} For each test on a separate line to derive the probability that the duel will end duel. Result output up to \textbf{6} decimal places.
Time limit 1 second
Memory limit 64 MiB
Input example #1
5
50
60
Output example #1
0.159722
0.972222
1.000000
Source Медведев М.Г. - Зимняя школа в Харькове 2009