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