h, w, q = map(int, input().split()) memo = {} temp = 0 for _ in range(q): y, x = map(int, input().split()) y -= 1 x -= 1 if y in memo: pre = memo[x] if pre < y: print(h * w - temp) else: memo[x] = y temp += pre - y print(h * w - temp) else: memo[x] = y temp += h - y print(h * w - temp)