#include <stdio.h>
int main()
{
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
int num[10] = { 0 };
int result = a * b * c;
while (result > 0) {
num[result % 10]++;
result = result / 10;
}
for (int i = 0; i < 10; i++) {
printf("%d\n", num[i]);
}
}