A - Blackjack
Editorial
/


Time Limit: 2 sec / Memory Limit: 1024 MB
配点 : 100 点
問題文
3 個の整数 A_1, A_2, A_3 が与えられます。
A_1+A_2+A_3 が 22 以上なら bust
、21 以下なら win
を出力してください。
制約
- 1 \leq A_i \leq 13 \ \ (i=1,2,3)
- 入力中のすべての値は整数である。
入力
入力は以下の形式で標準入力から与えられる。
A_1 A_2 A_3
出力
A_1+A_2+A_3 が 22 以上なら bust
、21 以下なら win
を出力せよ。
入力例 1
5 7 9
出力例 1
win
5+7+9=21 なので win
を出力します。
入力例 2
13 7 2
出力例 2
bust
13+7+2=22 なので bust
を出力します。
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
.