'use strict';

function Main(input) {
  const N = Number(input.split('\n')[0].split(' ')[0]);
  const M = Number(input.split('\n')[0].split(' ')[1]);
  const Q = Number(input.split('\n')[0].split(' ')[2]);
  const sectionlist = input.split('\n').slice(1, M+1).map(x => x.split(' ')).map(x => {x[0] = Number(x[0]); x[1] = Number(x[1]); return([x[0], x[1]])});
  const questionlist = input.split('\n').slice(M+1).map(x => x.split(' ')).map(x => {x[0] = Number(x[0]); x[1] = Number(x[1]); return([x[0], x[1]])});
  let list = [];

  for(let i=0; i<N; i++) {
    list[i] = [];
    for(let j=0; j<N; j++) {
      list[i][j] = 0;
      if(i <= sectionlist[i][0] && j >= sectionlist[j][1]) {
        list[i][j]++;
      }
    }
  }


  console.log(list);
  // for(let k=0; k<Q; k++) {
  //   let a = questionlist[k][0];
  //   let b = questionlist[k][1];
  //   console.log(list[a][b]);
  // }

};

Main(require("fs").readFileSync("/dev/stdin", "utf8").trim());
