H, W, Q = map(int, input().split()) from collections import defaultdict matrix = [['.']*W for _ in range(H)] ans = [] for _ in range(Q): y, x = map(int, input().split()) for i in range(y-1, H): matrix[i][x-1] = '#' dict = defaultdict(int) for h in range(H): for w in range(W): if matrix[h][w]=='.': dict['.'] += 1 ans.append(dict['.']) [print(i) for i in ans]