import random
n=int(input("总共做多少次测试:"))
sum1=0
for i in range(n):
list1=[]
for j in range(23):
c=random.randint(1, 366)
list1.append(str(c))
ds1=set(list1)
if len(ds1)!=len(list1):
sum1=sum1+1
final=(sum1*1.0)/n*100
print("最终结果为:{:.2f}".format(final))