#!/usr/bin/env python3 import sys def main(): H, W, Q = map(int, input().split()) all = H * W X, Y = [], [] for _ in range(Q): y, x = map(lambda i: int(i) - 1, input().split()) X.append(x) Y.append(y) k = set(X) d = {val : i + 1 for i, val in enumerate(sorted(list(k)))} ok = [H] * len(k) for i in range(Q): if ok[d[X[i]] - 1] <= Y[i]: print(all) continue all -= ok[d[X[i]] - 1] - Y[i] ok[d[X[i]] - 1] = Y[i] print(all) return if __name__ == '__main__': main()