n=gets.to_i x=gets.split.map &:to_f m=x.sum/n s=(x.map{|y|(y-m)**2}.sum/n)**0.5 p s p (50+10*(x[gets.to_i-1]-m)/(s>0? s:1)+1e-9).floor