Input
The input of the program is a set of numbers, ending with a zero.
Output
The program must output whether each number is balanced.
About statements
The official statement of a problem is always the one
in the PDF document. The HTML version of the statement
is also given to help you, but may contain some content
that is not well displayed. In case of doubt, always use the PDF.
Public test cases
Input
5225
12334
220
48659
917807
0
Output
5225 is a balanced number
12334 is not a balanced number
220 is a balanced number
48659 is not a balanced number
917807 is a balanced number
Input
5225
12334
220
48659
917807
0
Output
5225 is a balanced number
12334 is not a balanced number
220 is a balanced number
48659 is not a balanced number
917807 is a balanced number