def main(): n = int(input()) a1 = [] for i in range(0,n): a1.append(float(input())) a1.sort() s = 0.0 for a in a1: s += a print("{0:.10f}".format(s)) if __name__ == '__main__': main()