H, W, Q = map(int, input().split()) t = [H] * W c = sum(t) result = [] for _ in range(Q): Y, X = map(int, input().split()) p = t[X - 1] t[X - 1] = min(t[X - 1], Y - 1) c -= p - t[X - 1] result.append(c) print(*result, sep='\n')