# yukicoder No.81 すべて足すだけの簡単なお仕事です。 N = int(input()) total = 0 # 全部10 ** 10 倍して整数型で処理する for _ in range(N): A = input() if "." in A: keta = len(A[A.find(".") + 1:]) A = A.replace(".", "") total += int(A) * 10 ** (10 - keta) else: total += int(A) * (10 ** 10) # 出力は総計が-を含むかどうかで場合分け if total >= 0: if len(str(total)) > 10: # 丸めが起こらないよう文字列として表示 print(str(total)[:-10] + "." + str(total)[-10:]) else: # 桁が足りないときは0.00~の部分を埋める処理をする zero_ume = 10 - len(str(total)) print("0." + "0" * zero_ume + str(total)) else: # - がつくときの処理 if len(str(total)) > 11: print(str(total)[:-10] + "." + str(total)[-10:]) else: total = str(total).replace("-","") zero_ume = 10 - len(str(total)) print("-0." + "0" * zero_ume + str(total))