output_description: If A_1+A_2+A_3 is greater than or equal to 22, print `bust`; otherwise, print
  `win`.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      A_1 A_2 A_3
attempt: def main():
      h, w = map(int, input().split())
      L = 80 * (h + w) + 1
      a = [list(map(int, input().split())) for i in range(h)]
      b = [list(map(int, input().split())) for i in range(h)]
  
      x = [[abs(a[i][j] - b[i][j]) for j in range(w)] for i in range(h)]
  
      L = 12800
  
      state = [[0 for j in range(w)] for i in range(h)]
      delta = x[0][0]
      state[0][0] = (2**L >> delta) | (2**L << delta)
  
      for j in range(1, w):
          delta = x[0][j - 1]
          state[0][j] = (state[0][j - 1] >> delta) | (state[0][j - 1] << delta)
  
      for i in range(1, h):
          delta = x[i - 1][0]
          state[i][0] = (state[i - 1][0] >> delta) | (state[i - 1][0] << delta)
  
      for i in range(1, h):
          for j in range(1, w):
              delta = x[i][j]
              state[i][j] = (state[i][j - 1] >> delta) | (state[i][j - 1] << delta)
              state[i][j] = (state[i - 1][j] >> delta) | (state[i - 1][j] << delta)
  
      ans = 10**9
      for i in range(L * 2):
          if state[h - 1][w - 1] & 1:
              ans = min(ans, abs(i - L))
          state[h - 1][w - 1] >>= 1
      print(ans - 1)
  
  
  if __name__ == "__main__":
      main()
  
problem_description: Statement
  
  Given are three integers A_1, A_2, and A_3.
  
  If A_1+A_2+A_3 is greater than or equal to 22, print `bust`; otherwise, print
  `win`.
samples: [{"input": "5 7 9", "output": "win\n    \n\n5+7+9=21, so print `win`.\n\n* * *"}, {"input": "13 7 2", "output": "bust\n    \n\n13+7+2=22, so print `bust`."}]