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 z=50+10*(x[gets.to_i-1]-m)/(s>0? s:1)+1e-9 p z<0?-(-z).floor: z.floor