P = [0, 1, 2, 3, 4, 5, 6, 5, 4, 3, 2, 1] _ = input() hotels = list(map(int, input().split())) print(sum([P[i - 1] for i in hotels if i <= 12]) / 36)