#include<stdio.h>
int main()
{
int n,m,k,t=0,cnt=0,x,y,a[110][110]={0};
scanf("%d %d %d",&n,&m,&k);
for(int i=0;i<n;i++)
{
for(int j=0;j<n;j++)
{
a[i][j]=0;
}
}
while(~scanf("%d %d",&x,&y))
{
cnt++;
if(cnt<=m+1)
{
a[x-2][y]=1;
a[x+2][y]=1;
for(int j=y-1;j<=y+1;j++)
{
a[x-1][j]=1;
a[x+1][j]=1;
}
for(int j=y-2;j<=y+2;j++)
{
a[x][j]=1;
}
}
else
{
for(int i=x-2;i<=x+2;i++)
{
for(int j=y-2;j<=y+2;j++)
{
a[i][j]=1;
}
}
}
}
for(int i=0;i<n;i++)
{
for(int j=0;j<n;j++)
{
if(a[i][j]==0) t++;
}
}
printf("%d",t);
return 0;
}