N = int(input()) A = list(input()) s = 0 for i in N: s = s + A[i] print(s/N)