#K8216. Probability of Drawing the Highest Card

    ID: 35914 Type: Default 1000ms 256MiB

Probability of Drawing the Highest Card

Probability of Drawing the Highest Card

You are given an integer \( n \) and a list of \( n \) cards. Each card has a positive integer value. Your task is to calculate the probability of drawing a card that has the highest value from the deck.

The probability is defined as the ratio:

\( \text{Probability} = \frac{\text{number of highest-value cards}}{n} \)

Print the result as a floating point number with exactly six decimal places.

inputFormat

The input is read from standard input and consists of two lines. The first line contains a single integer ( n ) representing the number of cards. The second line contains ( n ) space-separated integers representing the values of the cards.

outputFormat

Output a single line to standard output containing the probability of drawing the highest-value card, formatted as a floating point number with six decimal places.## sample

5
1 2 3 4 5
0.200000