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