def main(): H, W, Q = map(int, input().split()) rest_sheets = H * W most_front_other_students = [H + 1 for _ in range(W)] for _ in range(Q): y, x = map(int, input().split()) if most_front_other_students[x - 1] < y: print(rest_sheets) else: rest_sheets -= (most_front_other_students[x - 1] - y) most_front_other_students[x - 1] = y print(rest_sheets) if __name__ == "__main__": main()