#include <iostream>
using namespace std;
int main(void)
{
int a, b, c, mul;
int arr[10] = {0, };
cin >> a >> b >> c;
mul = a * b * c;
while (mul != 0)
{
int remain = mul % 10;
for (int i = 0; i < 10; i++)
{
if (i == remain)
arr[i]++;
}
mul /= 10;
}
for (int i = 0; i < 10; i++)
cout << arr[i] << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKHZvaWQpCnsKICAgIGludCBhLCBiLCBjLCBtdWw7CiAgICBpbnQgYXJyWzEwXSA9IHswLCB9OwoKICAgIGNpbiA+PiBhID4+IGIgPj4gYzsKICAgIG11bCA9IGEgKiBiICogYzsKCiAgICB3aGlsZSAobXVsICE9IDApICAgCiAgICB7CiAgICAgICAgaW50IHJlbWFpbiA9IG11bCAlIDEwOwogICAgICAgIGZvciAoaW50IGkgPSAwOyBpIDwgMTA7IGkrKykKICAgICAgICB7CiAgICAgICAgICAgIGlmIChpID09IHJlbWFpbikKICAgICAgICAgICAgICAgIGFycltpXSsrOwogICAgICAgIH0KICAgICAgICBtdWwgLz0gMTA7CiAgICB9CgogICAgZm9yIChpbnQgaSA9IDA7IGkgPCAxMDsgaSsrKQogICAgICAgIGNvdXQgPDwgYXJyW2ldIDw8IGVuZGw7CgogICAgcmV0dXJuIDA7Cn0=