N,M=map(int,input().split()) A=list(map(int,input().split())) print(sum(A)//(N*M))