Problem:
Score : 100 points

Problem 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.

Constraints

1 \leq A_i \leq 13 \ \ (i=1,2,3)

All values in input are integers.

Input

Input is given from Standard Input in the following format:

A_1 A_2 A_3

Output

If A_1+A_2+A_3 is greater than or equal to 22, print bust; otherwise, print win.

Sample Input 1

5 7 9

Sample Output 1

win

5+7+9=21, so print win.

Sample Input 2

13 7 2

Sample Output 2

bust

13+7+2=22, so print bust.

Solution in Ruby (2.3.3) (judge verdict: Wrong Answer)

n = gets.to_i
#まず証言を取り出す
evi = n.times.map do
 a = gets.to_i
 a.times.map{gets.split.map(&:to_i)}
end

ans = 0
(2**n).times do |bit|
  cnt = 0
  n.times do |i|
       bit[i]
      #一人目は正直と仮定
    if bit[i] == 1
        #証言[2,1]が全てtrueなら～
      if evi[i].all? {|x,y| bit[x-1] == y}
        cnt += 1
      else
        cnt = 0
        break
      end
    end
  end
  ans = cnt if cnt > ans
end
puts ans