#include<iostream>
using namespace std;
bool a[10000][10000];
int main()
{
int n, m, k;
int x, y, s = 0;
cin >> n >> m >> k;
for (int i = 1; i <= m; i++)
{
cin >> x >> y;
a[x][y] = 1;
a[x - 1][y] = 1;
a[x - 2][y] = 1;
a[x + 1][y] = 1;
a[x + 2][y] = 1;
a[x][y - 1] = 1;
a[x][y - 2] = 1;
a[x][y + 1] = 1;
a[x][y + 2] = 1;
a[x - 1][y - 1] = 1;
a[x - 1][y + 1] = 1;
a[x + 1][y - 1] = 1;
a[x + 1][y + 1] = 1;
}
for (int i = 1; i <= k; i++)
{
cin >> x >> y;
a[x][y] = 1;
a[x][y - 1] = 1;
a[x][y - 2] = 1;
a[x][y + 1] = 1;
a[x][y + 2] = 1;
a[x - 1][y] = 1;
a[x - 2][y] = 1;
a[x + 1][y] = 1;
a[x + 2][y] = 1;
a[x - 1][y + 1] = 1;
a[x - 1][y - 1] = 1;
a[x - 1][y - 2] = 1;
a[x - 1][y + 2] = 1;
a[x + 1][y - 1] = 1;
a[x + 1][y + 1] = 1;
a[x + 1][y + 2] = 1;
a[x + 1][y - 2] = 1;
a[x - 2][y - 2] = 1;
a[x - 2][y - 1] = 1;
a[x - 2][y + 1] = 1;
a[x - 2][y + 2] = 1;
a[x + 2][y + 2] = 1;
a[x + 2][y + 1] = 1;
a[x + 2][y - 1] = 1;
a[x + 2][y - 2] = 1;
}
for (int i = 1; i <= n; i++)
{
for (int j = 1; j <= n; j++)
{
if (a[i][j] == 0)
{
s++;
}
}
}
cout << s;
return 0;
}