var n,p:real=1;begin repeat p:=p-p*n/365;n:=n+1;writeln("n=",n:0:0,", p=",1-p:0:8)until n>99end.