# Programmer: Sriram Pemmaraju
# Date: Feb 17th, 2011
# Computes the minimum, maximum, and average of a given sequence of numbers

n = int(raw_input("Enter the positive integer that denotes the length of your sequence: "))

# Read one number before the loop
currentNumber = float(raw_input())
min = currentNumber
max = currentNumber
sum = currentNumber
counter = 1 # tracks the number of numbers processed

# Loop for processing the numbers
while counter < n:
    currentNumber = float(raw_input())
    # Check if we've found a smaller min
    if currentNumber < min:
        min = currentNumber
    # Check if we've found a larger max
    if currentNumber > max:
        max = currentNumber
    # Update sum
    sum = sum + currentNumber
    counter = counter + 1

print "The minimum is", min
print "The maximum is", max
print "The average is", float(sum)/n