/*
#include <stdio.h>
int main ()
{
int arr [100] [100]={0};
int i,j,r,c,sum=0;
for (i=1;i<=9;i++)
{
for (j=1; j<=9; j++)
{
scanf("%d",&arr[i][j]);
}
}
scanf("%d %d",&r,&c);
if(arr [r][c]==1)
{
printf("-1");
}
if (arr [r] [c]==0)
{
for(i=r-1; i<=r+1; i++) {
for(j=c-1; j<=c+1; j++) {
sum += arr[i][j];
}
}
printf("%d", sum);
}
}
*/
#include <stdio.h>
int main()
{
int arr [100] [100]= {0};
int i,j,h,w,n,l,x,y,d;
scanf("%d %d", &x, &y);
scanf("%d", &n);
for (i=1; i<=n; i++)
{
scanf("%d %d %d %d", &i,&j,);
}
}