n = int(input()) lf = list(map(float, input().split())) print('{:.2f} {:.2f} {:.2f}'.format(max(lf), min(lf), sum(lf)/n))