Average price
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
You have scanned the prices of several products for sale. You now wish to determine the average product price. Unfortunately, you know that you have been sloppy, and you may have scanned some products more than once. However, you know that you have scanned every product at least once, and that no two products have exactly the same price. Find the average of product price.
Input
First line contains number of prices . Next line contains positive integers (no more than ) — the scanned prices.
Output
Print the average of product price with decimal digits.
Examples
Input #1
Answer #1
Submissions 1K
Acceptance rate 35%