using System;
using System.Collections.Generic;
using System.Linq;

class Program
{
    static string InputPattern = "InputX";

    static List<string> GetInputList()
    {
        var WillReturn = new List<string>();

        if (InputPattern == "Input1") {
            WillReturn.Add("4 5 8");
            WillReturn.Add("1 1");
            WillReturn.Add("1 4");
            WillReturn.Add("1 5");
            WillReturn.Add("2 3");
            WillReturn.Add("3 1");
            WillReturn.Add("3 2");
            WillReturn.Add("3 4");
            WillReturn.Add("4 4");
            //0
            //0
            //0
            //2
            //4
            //0
            //0
            //0
            //0
            //0
        }
        else if (InputPattern == "Input2") {
            WillReturn.Add("10 10 20");
            WillReturn.Add("1 1");
            WillReturn.Add("1 4");
            WillReturn.Add("1 9");
            WillReturn.Add("2 5");
            WillReturn.Add("3 10");
            WillReturn.Add("4 2");
            WillReturn.Add("4 7");
            WillReturn.Add("5 9");
            WillReturn.Add("6 4");
            WillReturn.Add("6 6");
            WillReturn.Add("6 7");
            WillReturn.Add("7 1");
            WillReturn.Add("7 3");
            WillReturn.Add("7 7");
            WillReturn.Add("8 1");
            WillReturn.Add("8 5");
            WillReturn.Add("8 10");
            WillReturn.Add("9 2");
            WillReturn.Add("10 4");
            WillReturn.Add("10 9");
            //4
            //26
            //22
            //10
            //2
            //0
            //0
            //0
            //0
            //0
        }
        else if (InputPattern == "Input3") {
            WillReturn.Add("1000000000 1000000000 0");
            //999999996000000004
            //0
            //0
            //0
            //0
            //0
            //0
            //0
            //0
            //0
        }
        else {
            string wkStr;
            while ((wkStr = Console.ReadLine()) != null) WillReturn.Add(wkStr);
        }
        return WillReturn;
    }

    static void Main()
    {
        List<string> InputList = GetInputList();

        int[] wkArr = { };
        Action<string> SplitAct = pStr =>
            wkArr = pStr.Split(' ').Select(X => int.Parse(X)).ToArray();

        SplitAct(InputList[0]);
        int H = wkArr[0];
        int W = wkArr[1];

        //そのマスを始点としての黒マスの数[座標のhash値]
        var CntDict = new Dictionary<long, int>();

        foreach (string EachStr in InputList.Skip(1)) {
            SplitAct(EachStr);

            int a = wkArr[0];
            int b = wkArr[1];

            for (int LoopX = b - 2; LoopX <= b; LoopX++) {
                if (LoopX < 1) continue;
                if (LoopX + 2 > W) break;

                for (int LoopY = a - 2; LoopY <= a; LoopY++) {
                    if (LoopY < 1) continue;
                    if (LoopY + 2 > H) break;

                    long Hash = (long)LoopX * (H + 1) + LoopY;
                    if (CntDict.ContainsKey(Hash))
                        CntDict[Hash]++;
                    else CntDict[Hash] = 1;
                }
            }
        }

        //foreach (var EachPair in CntDict.OrderBy(X => X.Key)) {
        //    Console.WriteLine("CntDict[{0}]={1}", EachPair.Key, EachPair.Value);
        //}

        long[] CntArr = new long[10];
        long CntSum = 0;
        foreach (int EachValee in CntDict.Values) {
            CntArr[EachValee]++;
            CntSum++;
        }
        CntArr[0] = (long)(H - 2) * (W - 2) - CntSum;
        Array.ForEach(CntArr, X => Console.WriteLine(X));
    }
}


Measured memory_bytes: 55160