405849: GYM102135 B Freebie
Description
You work in a team consisting of n people. According to tradition, everybody brings pizza as a birthday treat. If the birthday falls on non-working days(Saturdays and Sundays), the treat is postponed to Monday. You decided to find out one interesting fact. How often can days when pizza is served by several people (at least two) at once happen? Namely, you want to find the mathematical expectation of the number of such days in 2019. Just to let you know: the first of January in 2019 falls on Tuesday. Assume that each day of the year (excluding February, 29th) is equally probable for a birthday and birthdays are independent. The probability of being born on February, 29th is zero.
InputThe only line contains one integer n (1 ≤ n ≤ 200).
OutputYou are required to output a real number — the answer to the problem. Absolute or relative error should not exceed 10 - 9.
ExamplesInput1Output
0.000000000000Input
2Output
0.005081628823