N = int(input()); P = [*map(float, input().split())]; H = {}; B = [-1]*N for bm in range(1, 1<