在Turbo C中的整數資料型態(int)最大的正整數(unsigned int)只能到65535,即使使用長整數(unsigned long)最大也只能到4294967295。但是有時候這樣的整數仍然不夠大,我們需要一種VeryLongInteger,他的長度為小於或等於100個數字。
這個問題是要請你寫一個程式來作VeryLongInteger的加法。
Input
輸入的每一行代表一個VeryLongInteger(所有VeryLongInteger均為正數)。
最後一行只包含一個0,代表輸入結束。
Output
輸出所有輸入的VerylongInteger之和。
Sample input
123456789012345678901234567890 123456789012345678901234567890 123456789012345678901234567890 0
Sample Output
370370367037037036703703703670