LearnPy Hub
← Arena
IntermediateRating 1200

Shared Birthdays

Print the probability (4 decimals) that at least two of n people share a birthday (365 equally likely days).

Input

One integer n.

Output

A probability.

Sample 1

Input
23
Output
0.5073

Sample 2

Input
1
Output
0.0000
solution.py
Output appears here
Shared Birthdays · Python Arena problem · LearnPy Hub