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 Rust (1.15.1) (judge verdict: Accepted)

// * refernce
//   * https://qiita.com/tanakh/items/0ba42c7ca36cd29d0ac8

use std::io;
use std::str;

fn main () {

    // STEP.01
    // create a new `String` instance to store the test data from standard input
    let mut buffer_stdin = String::new();

    // STEP.02
    // read a line from the standard input to get test data
    std::io::stdin().read_line(&mut buffer_stdin).unwrap();

    // STEP.03
    // split the stdin by spaces
    let mut test_data = buffer_stdin.split_whitespace();

    // STEP.04
    // read out the test data from the iterator
    let a1: u8 = test_data.next().unwrap().parse().unwrap();
    let a2: u8 = test_data.next().unwrap().parse().unwrap();
    let a3: u8 = test_data.next().unwrap().parse().unwrap();

    println!( "{}", abc147_a_answerer(a1, a2, a3) );

}

fn abc147_a_answerer (a1: u8, a2: u8, a3: u8) -> String {

    return
        if   abc147_a_judge (a1, a2, a3) { String::from("win")  }
        else                             { String::from("bust") }

}

fn abc147_a_judge (a1: u8, a2: u8, a3: u8) -> bool {

    return a1 + a2 + a3 <= 21

}