import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Set;
import java.util.StringTokenizer;

public class Main {
	public static void main(String[] args) throws IOException {
		Main mainObj = new Main();
		mainObj.solve();
	}

	public void solve() throws IOException {
		FastScanner fs = new FastScanner();
		int h = fs.nextInt();
		int w = fs.nextInt();
		int n = fs.nextInt();
		
		HashMap<Integer , HashMap<Integer, Integer>> pointMap = new HashMap<>();
		for(int i = 0; i < n ; i++) {
			
			int a = fs.nextInt();
			int b = fs.nextInt();
			
			if(a + 2 <= h) {
				
				if(b+2 <= w) {
					upDatePointMap(pointMap, a,b);
				}
				
				if(b+1 <= w && b-1 >= 1) {
					upDatePointMap(pointMap, a, b-1);
				}
				if(b - 2 >= 1) {
					upDatePointMap(pointMap, a, b-2);
				}
				
			}
			
			if(a + 1 <= h  && a - 1 >=1) {
				if(b+2 <= w) {
					upDatePointMap(pointMap, a-1,b);
				}
				
				if(b+1 <= w && b-1 >= 1) {
					upDatePointMap(pointMap, a-1, b-1);
				}
				if(b - 2 >= 1) {
					upDatePointMap(pointMap, a-1, b-2);
				}	
			}
			
			if(a - 2 >= 1) {
				if(b+2 <= w) {
					upDatePointMap(pointMap, a-2,b);
				}
				
				if(b+1 <= w && b-1 >= 1) {
					upDatePointMap(pointMap, a-2, b-1);
				}
				if(b - 2 >= 1) {
					upDatePointMap(pointMap, a-2, b-2);
				}
			}
			
		}
		
		long[] numOfPointMap = new long[10];
		long sumOfNotZero = 0;
		for(HashMap<Integer,Integer> rowMap : pointMap.values()) {
			for(Integer numOfSquare : rowMap.values()) {
				numOfPointMap[numOfSquare]++;
				sumOfNotZero++;
			}
		}
		
		System.out.println((long)(h-2) * (long)(w-2) - sumOfNotZero);
		for(int i = 1; i < 10; i++) {
			System.out.println(numOfPointMap[i]);
		}
	}
	
	public void upDatePointMap(HashMap<Integer , HashMap<Integer, Integer>> pointMap, int top, int left) {
		if(!pointMap.containsKey(top)) {
			pointMap.put(top, new HashMap<>());
		}
		
		HashMap<Integer, Integer> rowMap = pointMap.get(top);
		rowMap.compute(left, (k,v) -> v==null? 1:v+1);
	}

//	class Point{
//		
//		int x;
//		int y;
//		
//		Point(int x, int y){
//			this.x = x;
//			this.y = y;
//		}
//		
//		public boolean equals(Object o) {
//			return ((Point) o).x == this.x && ((Point) o).y == this.y;
//		}
//		
//		public int hashCode() {
//			return 
//		}
//	}
	

	public class FastScanner {

		BufferedReader reader;
		private StringTokenizer st;

		public FastScanner() {
			st = null;
			reader = new BufferedReader(new InputStreamReader(System.in));
		}

		public String next() throws IOException {
			if (st == null || !st.hasMoreElements()) {
				st = new StringTokenizer(reader.readLine());
			}
			return st.nextToken();
		}

		public String nextLine() throws IOException {
			st = null;
			String readLine = null;
			readLine = reader.readLine();
			return readLine;
		}

		public int nextInt() throws NumberFormatException, IOException {
			return Integer.parseInt(next());
		}

		public long nextLong() throws NumberFormatException, IOException {
			return Long.parseLong(next());
		}

		public int[] nextIntArr(int n) throws NumberFormatException, IOException {
			int[] retArr = new int[n];
			for (int i = 0; i < n; i++) {
				retArr[i] = nextInt();
			}
			return retArr;
		}

		public long[] nextLongArr(int n) throws NumberFormatException, IOException {
			long[] retArr = new long[n];
			for (int i = 0; i < n; i++) {
				retArr[i] = nextLong();
			}
			return retArr;
		}

		public void close() throws IOException {
			reader.close();
		}
	}


}


Measured memory_bytes: 172740