# birthday.py
# info: https://en.wikipedia.org/wiki/Birthday_problem

NUM_PEOPLE = 30

prob = 1
for i in range(1, NUM_PEOPLE+1):
  prob *= (1-((i-1)/365))
  print(f"p({i:2})={prob:.4f} ", end = ' ')
  if i%4 == 0:
    print()
