Given are three integers A1, A2, and A3. If A1+A2+A3 is greater than or equal to 22,…
- User
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, printwin.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, printwin.Examples
Input
5 7 9
Output
win
Input
13 7 2
Output
bust
Assistant
We are given a straightforward problem: read three integers, sum them, compare to 22, output "bust" if sum >= 22 else "win".
That's all. However, the system might expect trailing newline etc.
We need to implement solution. The problem is from AtCoder Beginner Contest? Likely ABC147 A? Actually ABC147 A is "Blackjack"? But that one uses sum < 22? Yes, AtCoder ABC147 A: "Blackjack". The problem statement: Given three integers A1, A2, A3 (1-13). If sum >= 22, print "bust", else print "win". So it's exactly that.
Just implement.
Let's write solution in Python.
We'll read input, split, map to int, compute sum, check condition, print.
Edge cases: sums exactly 22 -> bust. Otherwise win.
Implementation:
def main(): a = list(map(int, input().split())) s = sum(a) if s >= 22: print("bust") else: print("win")
if name == "main": main()