a=int(input()) b=float(input()) i=0 p=0 def t(s): global i global p if i==a-1: return p tt=s*(1-b) p+=tt i+=1 return t(tt) print(100+t(100))