n=int(input()) res=0 #计数器 for i in range(n): t=int(input()) res+=t ave=res/n print("{} {:.5f}".format(res,ave))