output_description: Among A, B and C, print the integer that is different from the rest.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      A B C
attempt: h, w = map(int, input().split())
  s = [list(input() for i in range(h))]
  t = s.copy()
  
  
  number = []
  cnt = 0
  
  for i in range(h):
      if 1 <= i and i <= h - 2:
          for j in range(w):
              if j >= 1 and j < w - 1:
                  number = [
                      s[i - 1][j - 1],
                      s[i - 1][j],
                      s[i - 1][j + 1],
                      s[i][j - 1],
                      s[i][j + 1],
                      s[i + 1][j - 1],
                      s[i + 1][j],
                      s[i + 1][j + 1],
                  ]
                  cnt = number.count("#")
                  t[i][j] = cnt
  
              elif j == 0:
                  number = [s[i - 1][0], s[i + 1][0], s[i - 1][1], s[i][1], s[i + 1][1]]
                  cnt = number.count("#")
                  t[i][0] = cnt
  
              elif j == w - 1:
                  number = [
                      s[i - 1][w - 1],
                      s[i + 1][w - 1],
                      s[i - 1][w - 2],
                      s[i][w - 2],
                      s[i + 1][w - 2],
                  ]
                  cnt = number.count("#")
                  t[i][w - 1] = cnt
  
      elif i == 0:
          for j in range(w):
              if 1 <= j and j <= w - 2:
                  number = [s[0][j - 1], s[0][j + 1], s[1][j - 1], s[1][j], s[1][j + 1]]
                  cnt = number.count("#")
                  t[0][j] = cnt
  
              elif j == 0:
                  number = [s[0][1], s[1][0], s[1][1]]
                  cnt = number.count("#")
                  t[0][0] = cnt
  
              elif j == w - 1:
                  number = [s[0][w - 2], s[1][w - 2], s[1][w - 1]]
                  cnt = number.count("#")
                  t[0][w - 1] = cnt
  
      elif i == h - 1:
          for j in range(w):
              if 1 <= j and j <= w - 2:
                  number = [
                      s[h - 1][j - 1],
                      s[h - 1][j + 1],
                      s[h - 2][j - 1],
                      s[h - 2][j],
                      s[h - 2][j + 1],
                  ]
                  cnt = number.count("#")
                  t[h - 1][j] = cnt
  
              elif j == 0:
                  number = [s[h - 1][1], s[h - 2][1], s[h - 2][0]]
                  cnt = number.count("#")
                  t[h - 1][0] = cnt
  
              elif j == w - 1:
                  number = [s[h - 2][w - 1], s[h - 1][w - 2], s[h - 2][w - 2]]
                  cnt = number.count("#")
                  t[h - 1][w - 1] = cnt
  
  for i in range(h):
      for j in range(w):
          if s[i][j] == "#":
              t[i][j] = "#"
  
  
  a0 = map(str, t[0])
  a1 = map(str, t[1])
  a2 = map(str, t[2])
  print("".join(a0))
  print("".join(a1))
  print("".join(a2))
  
problem_description: Statement
  
  You are given three integers, A, B and C.  
  Among them, two are the same, but the remaining one is different from the
  rest.  
  For example, when A=5,B=7,C=5, A and C are the same, but B is different.  
  Find the one that is different from the rest among the given three integers.
samples: [{"input": "5 7 5", "output": "7\n    \n\nThis is the same case as the one in the statement.\n\n* * *"}, {"input": "1 1 7", "output": "7\n    \n\nIn this case, C is the one we seek.\n\n* * *"}, {"input": "-100 100 100", "output": "-100"}]