EasyRating 900
Digit Tally
For every digit that appears in n, print the digit and how often it appears, as d:count, from smallest digit to largest.
Input
One integer n (0 ≤ n ≤ 10¹⁸).
Output
One line.
Sample 1
Input
1223334444
Output
1:1 2:2 3:3 4:4
Sample 2
Input
0
Output
0:1
Output appears here