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();

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

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

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

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

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

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

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

                    long Hash = 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: 54888