#python3题解#
lis = []
while 1:
try:
lis.append(input())
except:
break
score = list(map(float, lis[1].split()))
print(f"{max(score):.2f} {min(score):.2f} {sum(score)/len(score):.2f}")
#python3题解#
lis = []
while 1:
try:
lis.append(input())
except:
break
score = list(map(float, lis[1].split()))
print(f"{max(score):.2f} {min(score):.2f} {sum(score)/len(score):.2f}")