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 checker(bbit, listN, N):
      i = 0
      j = 0
      ng = False
      # print(N)
      # print(listN)
      # print(bin(bbit))
      while N > i:
          j = 0
          checkFig = 3
          ibit = 1 << i
          while N > j:
              cbit = 1 << j
              if bbit & cbit == 0:
                  # print("A:{} {}".format(j,i))
                  pass
              elif listN[j][i] == 3:
                  # print("B:{} {}".format(j,i))
                  pass
              elif (listN[j][i] == 0) and (bbit & ibit != 0):
                  ng = True
                  break
              elif checkFig == 3:
                  # print("C:{} {}".format(j,i))
                  checkFig = listN[j][i]
              elif checkFig != listN[j][i]:
                  ng = True
                  # print("D:{} {}".format(j,i))
                  break
              j += 1
          if ng:
              # print(ng)
              break
          else:
              i += 1
      return not ng
  
  
  def main():
      N = int(input())
      listA = [[3 for j in range(N)] for k in range(N)]
      n = 0
      while N > n:
          a = int(input())
          i = 0
          while a > i:
              x, y = map(int, input().split())
              listA[n][x - 1] = y
              i += 1
          n += 1
  
      honestBit = pow(2, N) - 1
      honest = 0
  
      while honestBit > 0:
          ok = checker(honestBit, listA, N)
          if ok:
              okbit = honestBit
              oknum = 0
              while okbit > 0:
                  oknum += okbit % 2
                  okbit /= 2
  
              if oknum > honest:
                  honest = oknum
          honestBit -= 1
  
  
  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`."}]