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: n = int(input())
  ret = {}
  for i in range(0, n):
      a = int(input())
      ret[i] = [[], []]
      for j in range(a):
          x, y = map(int, input().split())
          x -= 1
          if y == 1:
              ret[i][0].append(x)
          elif y == 0:
              ret[i][1].append(x)
  ans = 0
  for u in ret:
      i = ret[u]
      num = 1 + len(i[0])
      honest = [u] + i[0]
      not_honest = i[1]
      for p in i[0]:
          # print(p, ret[p])
          for h in ret[p][0]:
              honest.append(h)
          for d in ret[p][1]:
              not_honest.append(d)
      honest = list(set(honest))
      not_honest = list(set(not_honest))
      # print(honest, not_honest)
      if list(set(honest) & set(not_honest)) == []:
          ans = max(ans, len(honest))
      for i in range(0, n):
          if i not in honest and i not in not_honest:
              t_honest, t_not_honest = [], []
              for h in ret[i][0]:
                  t_honest.append(h)
              for d in ret[i][1]:
                  t_not_honest.append(d)
              t_honest = list(set(t_honest))
              t_not_honest = list(set(t_not_honest))
              if list(set(honest) & set(t_not_honest)) == []:
                  honest = list(set(honest + t_honest))
                  ans = max(ans, len(honest))
  print(ans)
  
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`."}]