{"size": 486, "ext": "js", "max_stars_repo_path": "practice-problems/basic-programming/implementation/basics-of-implementation/count-digits-1/code.js", "max_stars_repo_name": "daiyam/hackerearth", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "practice-problems/basic-programming/implementation/basics-of-implementation/count-digits-1/code.js", "max_issues_repo_name": "daiyam/hackerearth", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "practice-problems/basic-programming/implementation/basics-of-implementation/count-digits-1/code.js", "max_forks_repo_name": "daiyam/hackerearth", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 19.44, "max_line_length": 50, "alphanum_fraction": 0.5411522634}
function main(input) {
    var digits = (new Array(10)).fill(0);
    
    for(var i = 0, l = input.length; i < l; i++) {
        digits[input[i]]++;
    }
    
    for(i = 0; i < 10; i++) {
        console.log(i + ' ' + digits[i]);
    }
}

process.stdin.resume();
process.stdin.setEncoding("utf-8");
var stdin_input = "";

process.stdin.on("data", function (input) {
    stdin_input += input;
});

process.stdin.on("end", function () {
   main(stdin_input.split('').map(Number));
});

