正整数的各位数字之和称为Tom数。求输入\(n\), \(n\leq 2^{31}-1\)的Tom数!
每行一个整数\(n\) ,\(n\leq2^{31}-1\).
每行一个输出,对应该数的各位数之和.
12345 56123 82
15 17 10