N,*P,M=map(int,(input()+' '+input()+' '+input()).split()) m=sum(P)/N a=(sum([(n-m)**2 for n in P])/N)**0.5 z=50 if a==0 else int((P[M-1]-m)*10/a+50) print(z)