const [a,b,c] = require("fs").readFileSync(0,"utf8").toString().trim().split('\n').map(Number);
let cnt = new Array(10).fill(0);
(a*b*c).toString().split('').forEach(s => cnt[Number(s)]++);
cnt.forEach(v=> console.log(v) );