'''TESTCASE
12345678
-
11223344
-
32146478264968
-
170147835073298
-
249873208528593240589248324725628394892185728394720938402195489052340965398674028947
'''
from collections import Counter

a = input()
cnt = Counter(a)
ans = [cnt[str(i)] for i in range(10)]

print(*ans)