n=int(input()) x=list(map(int,input().split())) m=int(input()) from statistics import pstdev,mean m-=1 if pstdev(x)==0: print(50) exit() ans=50+10*(x[m]-mean(x))/pstdev(x) print(int(ans))