n=int(input()) score=list(map(float,input().split())) a=max(score) b=min(score) c=sum(score)/n print(f"{a:.2f} {b:.2f} {c:.2f}")