output_description: Print the area of the given trapezoid. It is guaranteed that the area is an
  integer.
  
  * * *
input_description: The input is given from Standard Input in the following format:
  
      
      
      a
      b
      h
attempt:     h,w,n=map(int,input().split())
      d={}
      for _ in range(n):
          a,b=map(int,input().split()) 
          for i in (-1,0,1):
              for j in (-1,0,1):
                  if 2<=a+i<=h-1 and 2<=b+j<=w-1:
                      d.setdefault((a+i,b+j),0)
                      d[a+i,b+j]+=1
      r=[0]*10
      for i in d.values():
          r[i]+=1
      r[0]=(h-2)*(w-2)-sum(r)
      for i in r:
          print(i)
problem_description: Statement
  
  You are given a trapezoid. The lengths of its upper base, lower base, and
  height are a, b, and h, respectively.
  
  ![](https://atcoder.jp/img/arc061/1158e37155d46a42e90f31566478e6da.png)
  
  An example of a trapezoid
  
  Find the area of this trapezoid.
samples: [{"input": "3\n    4\n    2", "output": "7\n    \n\nWhen the lengths of the upper base, lower base, and height are 3, 4, and 2,\nrespectively, the area of the trapezoid is (3+4)\u00d72/2 = 7.\n\n* * *"}, {"input": "4\n    4\n    4", "output": "16\n    \n\nIn this case, a parallelogram is given, which is also a trapezoid."}]