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