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: def bakudanda(y, x):
      if y < 0 or y >= len(s):
          return 0
      if x < 0 or x >= len(s[y]):
          return 0
      if s[y][x] == "#":
          return 1
      else:
          return 0
  
  
  H, W = map(int, input().split())
  s = []
  for i in range(H):
      s.append(input())
  
  for i in range(len(s)):
      a = s[i]
      fp = ""
      for j in range(len(a)):
          if a[j] == ".":
              c = 0
              ds = [(-1, -1), (-1, 0), (-1, 1), (0, -1), (0, 1), (1, -1), (1, 0), (1, 1)]
              for y, x in ds:
                  c += bakudanda(i + y, j + x)
              fp += str(c)
          else:
              fp += "#"
      print(fp)
  
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"}]