H,W,Q = map(int,input().split()) A = {} tot = H*W for _ in range(Q): y,x = map(int,input().split()) if x not in A: A[x] = y delta = H+1-y tot -= delta print(tot) elif A[x]