n = input() n_scores = input().split(' ') n_scores = list(map(lambda i: float(i),n_scores)) n_scores.sort() print("%.2f %.2f %.2f" % (n_scores[-1], n_scores[0], sum(n_scores)/len(n_scores)))