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 print(int((P[M-1]-m)*10/a+50))