Sanggeun stores a real number in a struct. The struct has an integer array digits that holds 30 digits, an integer decpt that records where the decimal point sits, and a sign field that records + or -. This scheme keeps a value such as -218.302869584 or 0.0000123456789 exactly, with no rounding.
Given several real numbers, write a program that adds them Sanggeun's way and produces the exact sum.
The first line has the number of test cases. Each test case is a list of real numbers, and a single 0 at the end marks where that test case stops. The terminating 0 is not added into the sum.
Every real number in the input has at most 30 digits, and one test case holds at most 100 real numbers.
For each test case print the sum of its real numbers on one line. Never round. Write the sum exactly, stop at the last nonzero digit, and drop the zeros that follow it.
The format obeys these rules.