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 JavaScript (node.js v5.12) (judge verdict: Accepted)

// inputに入力データ全体が入る
function Main(input) {
    "use strict";
    // 1行目がinput[0], 2行目がinput[1], …に入る
    const tmp = input.split("\n");
    const a = tmp[0].split(" ");
    const toInt = function (n, array) {
        let result = [];
        for (let i = 0; i < n; i++) {
            result[i] = parseInt(array[i]);
        }
        return result;
    };
    const intA = toInt(a.length, a);
    const sumA = intA.reduce((accumulator, currentValue) => accumulator + currentValue);
    let result;
    if (sumA >= 22) {
        result = "bust";
    } else {
        result = "win";
    }

    console.log(result);
}
//*この行以降は編集しないでください（標準入出力から一度に読み込み、Mainを呼び出します）
Main(require("fs").readFileSync("/dev/stdin", "utf8"));