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.



Sample input:
5 7 9


Sample output:
win

Submission status: Runtime Error

Solution code:
n=int(input())
xy=[]
for i in range(n):
  a=int(input())
  xy.append([list(map(int,input().split())) for j in range(a)])

ans=0
for i in range(2**n):
  honest=[]
  for j in range(n):
    if (i>>j)&1:
      honest.append(1)
    else:
      honest.append(0)
  p=0
  for j,k in enumerate(honest):
    if k==1:
      r=0
      for l in xy[j]:
        if honest[l[0]-1]!=l[1]:
          r=1
          break    
      if r==0:
        p=p+1
  if p==sum(honest):
    ans=p
print(max(ans))

Submission status: Runtime Error

Solution code:
a,b.c=map(int,input().split())
print('bust' if a+b+c>21 else 'win')

Submission status: Runtime Error

Solution code:
N=int(input())
A=list(map(int,input().split()))
ans=0
mod=(10**9)+7
for i in range(len(A)-1):
    for j in range(i+1,len(A)):
        ans+=(a^b)
ans=ans%mod
print(ans)

Submission status: Runtime Error

Solution code:
a, b, c = map(int, input().split())
if a + b + c >= 22:
    print("bust")
else:
    print(win)

Submission status: Runtime Error

Solution code:
a,b,c = map(int,input().split())

if sum(a,b,c) >= 22:
    print('bust')
else:
    print('win')

Submission status: Runtime Error

Solution code:
A, B, C =map(int,input().shape())
if A+B+C >=22:
  print('bust')
else:
  print('win')

Submission status: Runtime Error

Solution code:
A = map(int,input().split())

if A[0]+A[1]+A[2] <= 21:
  print('win')
else:
  print('bust')

Submission status: Runtime Error

Solution code:
#!/usr/bin/env python3
s, t = input().split()
print(t+s)

Submission status: Runtime Error

Solution code:
fun main(args:Array<String>){
    val a=readLine()!!.split(" ").map{it.toInt()}
    if (a[0]+a[1]+a[2]>=22){
        println("bust")
    }else{
        println("win")
    }
}

Submission status: Runtime Error

Solution code:
print('bust') if sum(input().split()) >= 22 else print('win')

Submission status: Runtime Error

Solution code:
a,b,c = map(int, input().split)
if a+b+c>=22:
    print("bust")
else:
    print("win")

Submission status: Runtime Error

Solution code:
A = list(map(int, input().split()))

total = sum(A)

if total > 22:
  print("bust")
else:
  print("win)

Submission status: Runtime Error

Solution code:
A = list(map(int, input().split()))

total = sum(A)

if A > 22:
  print("bust")
else:
  print("win)

Submission status: Runtime Error

Solution code:
A,B,C = list(map(int, input().split()))
if sum(A,B,C) >= 22:
    print("bust")
else:
    print("win ")

Submission status: Runtime Error

Solution code:
A = [map(int, input().split())]
print("win" if sum(A) < 22 else "bust")

Submission status: Runtime Error

Solution code:
A = [map(int, input().split())]
print("win" if sum(A) >= 22 else "bust")

Submission status: Runtime Error

Solution code:
A1,A2,A3=map(int,input().split)

if A1+A2+A3>=22:
    print("bust")
else:
    print("win")

Submission status: Runtime Error

Solution code:
#include<stdio.h>
#include<iostream>
#include<vector>
using namespace std;

int main(){ ; 
    int a1,a2,a3;
    cin >> a1 >> a2 >> a3;

    if (a1+a2+a3 >= 22){
        cout << "bust" << endl;
    }

    else{
        cout << "win" << endl;
    }
}

Submission status: Runtime Error

Solution code:
print('win' if sum(map(int,input())) == 21 else 'bust')

Submission status: Runtime Error

Solution code:
print('win' if sum(list(map(int,input())))) == 21 else 'bust')

Submission status: Runtime Error

Solution code:
a = map(int, input().split())
n = sum(a)
if a <= 21:
  print('win')
else:
  print('burst')

Submission status: Runtime Error

Solution code:
a = map(int, input().split())
n = sum(a)
if a < 22:
  print('win')
else:
  print('burst')

Submission status: Runtime Error

Solution code:
A,B,C = int(input())
if A+B+C >=22:
  print('bust')
else:
  print('win')

Submission status: Runtime Error

Solution code:
#abc15047d
n=int(raw_input())
a=map(int,raw_input().split())
mod=10**9+7
res=0
for i in range(60):
 cnt=sum([1 for x in a if (x>>i & 1)])
 res+=cnt*(n-cnt)*(1<<i)
 res=res%mod
print res

Submission status: Runtime Error

Solution code:
A1, A2, A3 = map(int, input().split())

if sum(A1, A2, A3) >= 22:
	print('bust')
else:
	print('win')

Submission status: Runtime Error

Solution code:
a,b,c=map(int,input())

if a+b+c>=22:
  print('bust')
else:
  print('win')

Submission status: Runtime Error

Solution code:
a =list( map(int, input.split()) )
a = sum(a)
if(a>=22):
  print("bust")
else:
  print("win")

Submission status: Runtime Error

Solution code:
a =list( map(int, input.split()) )
a = sum(a)
if(a>=22):
  print("bust")
else:
  print("win")

Submission status: Runtime Error

Solution code:
N = int(input())

evidences = [[] for _ in range(N)]
for i in range(N):
    A = int(input())
    for _ in range(A):
        x, y = map(int, input().split())
        evidences[i].append((x-1, y))

result = 0
for i in range(1, 2**N):
    consistent = True
    for j in range(N):
        if (i >> j) & 1 == 0:
            continue
        for x, y in evidences[j]:
            if (i >> x) & 1 != y:
                consistent = False
                break
        if not consistent:
            break
    if consistent:
        result = max(result, bin(i)[2:].count('1'))
print (result)

Submission status: Runtime Error

Solution code:
MOD=10**9+7
N=int(input())
A=list(map(int,input().split()))
bit=[[0]*60 for i in range(N+1)]
for i in range(1,N+1):
    for j in range(60):
        if(A[i-1]>>j&1):
            bit[i][j]=bit[i-1][j]+1
        else:
            bit[i][j]=bit[i-1][j]
res=0
for i in range(N):
    for j in range(60):
        if not (A[i]>>j&1):
            res=(res+(2**j)*bit[i][j])%MOD
        else:
            res=(res+(2**j)*(i-bit[i][j]))%MOD
print(res)

Submission status: Runtime Error

Solution code:
def main():
    h,w=map(int,input().split())
    L=80*(h+w)+1
    a=[list(map(int,input().split())) for i in range(h)]
    b=[list(map(int,input().split())) for i in range(h)]


    x=[[abs(a[i][j]-b[i][j]) for j in range(w)] for i in range(h)]
    

    L=12800
    
    state=[[0 for j in range(w)] for i in range(h)]
    delta=x[0][0]
    state[0][0]=(2**L>>delta)|(2**L<<delta)

    for j in range(1,w):
        delta=x[0][j-1]
        state[0][j]=(state[0][j-1]>>delta)|(state[0][j-1]<<delta)

    for i in range(1,h):
        delta=x[i-1][0]
        state[i][0]=(state[i-1][0]>>delta)|(state[i-1][0]<<delta)

    for i in range(1,h):
        for j in range(1,w):
            delta=x[i][j]
            state[i][j]=(state[i][j-1]>>delta)|(state[i][j-1]<<delta)
            state[i][j]=(state[i-1][j]>>delta)|(state[i-1][j]<<delta)

    
    ans = 10**9
    for i in range(L*2):
        if state[h-1][w-1] & 1:
            ans = min(ans,abs(i-L))
        state[h-1][w-1]>>=1
    print(ans-1)



if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
a, b, c = map(int, input().split())

if a + b + c <= 22:
  print('bust')
else;¥:
  print('win')

Submission status: Runtime Error

Solution code:
a, b, c = map(int, input.split())

if a + b + c <= 21:
  print('win')
else:
  print('bust')

Submission status: Runtime Error

Solution code:
N  = int(input())
testimony = [[]for i in range(N)]
for i in range(N):
    num = int(input())
    for j in range(num):
        person, state = map(int, input().split())
        testimony[i].append([person-1,state])#3次元配列の作り方
honest = 0
for i in range(1, 2**N):
    flag = 0
    for j in range(N):
        if(i>>j)&1 == 1:
            for x,y in testimony[j]:#3次元リストからx,yを取り出す書きかた　覚える
                if (i>>x)&1 != y: #正直といっているがそうではない　と　嘘つきといっているがそうではない　の二つ同時
                    flag =1
                    break
    if flag == 0:
        honest = max(honest, bin(i)[2:].count('1'))# bin()で二進数に変換　最初の二文字は0bで取り除く count('1')で数える
print(honest)

Submission status: Runtime Error

Solution code:
A1=int(input())
A2=int(input())
A3=int(input())
wa=A1+A2+A3
if wa<=21:
    print('win')
else:
    print('bust')

Submission status: Runtime Error

Solution code:
a,b,c = map(int,input().split())
if a+b+c = 22:
		print("bust")
		
else:
		print("win")

Submission status: Runtime Error

Solution code:


def main():
    a, b, c = map(int, input().split())
    sum = a+b+c
    print(sum)

    if (sum <=  21):
        print("win")
    elif(sum >= 22):
        print("bust")

if __name__ == "__main__":
    main()

Submission status: Runtime Error

Solution code:
A = list(map(int,input.split()))
if sum(A) <= 21:
    print("win")
else:
    print("bust")

Submission status: Runtime Error

Solution code:
A₁,A₂,A₃=map(int,input().split())

if A₁+A₂+A₃>=22:
  print('bust')
else:
  print('win')

Submission status: Runtime Error

Solution code:
A1, A2, A3 = map(int, input.split())
if A1 + A2 + A3 >= 22:
    print("bust")
else:
    print("win")

Submission status: Runtime Error

Solution code:
if sum(list(map(int, input()))) > 21:
  print('bust')
else:
  print('win')

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int, input().split()))
INF = 1000000007
keta = len(bin(max(A))) - 2
ans = 0
shift = 0
for _ in range(keta):
    num_1 = 0
    for a in A:
        if a&1:
            num_1 += 1
        a=a>>1
    ans += num_1 * (N-num_1) * 2 ** shift
print(ans % INF)

Submission status: Runtime Error

Solution code:
input(a, b, c):
  if a + b + c >= 22:
    print('bust')
  else:
    print('win')

Submission status: Runtime Error

Solution code:
A,B,C=list(map(int,input().split())
if A+B+C<22:
    print("win")
else:
    print("bust")

Submission status: Runtime Error

Solution code:
A.B.C=map(int,input().split())
if A+B+C>=22:
  print("bust")
else:
  print("win")

Submission status: Runtime Error

Solution code:
a = list(map(int,input().split()))

if sum(a) >=22:
    print(bust)
else:
    print(win)

Submission status: Runtime Error

Solution code:
a = list(map(int,input().split())

if sum(a) >=22:
    print(bust)
else:
    print(win)

Submission status: Runtime Error

Solution code:
a = list(map(int,input().split())

if sum(a) =>22:
    print(bust)
else:
    print(win)

Submission status: Runtime Error

Solution code:
a,b,c=map(int,input().split())

if a+b+c => 22:
  print(bust)
else:
  print(win)

Submission status: Runtime Error

Solution code:
a,b,c=map(int,input().split())

if a+b+c >= 22:
  print(bust)
else:
  print(win)

Submission status: Runtime Error

Solution code:
a,b,c=map(int,input().split())

if a+b+c>21:
  print(bust)
else:
  print(win)

Submission status: Runtime Error

Solution code:
A, B, C = map(int, input().split())

if A + B + C >= 22:
    print("bust")
else:
    print(win)

Submission status: Runtime Error

Solution code:
A, B, C = map(int, input().split())

if A + B + C >= 22
    print("bust")
else:
    print(win)

Submission status: Runtime Error

Solution code:
A1 = print("Enter first number)
A2 = print("Enter second number)
A3 = print("Enter third number)

if (A1+A2+A3>=22):
           print("bust)
   else:
           print("win)

Submission status: Runtime Error

Solution code:
a, b, c= map(int,input())
sum = a + b + c
if sum >= 22:
  preint("best")
else:
  print("win")

Submission status: Runtime Error

Solution code:
if __name__ == '__main__':
  a,b,c=(int(x) for x in input().split())
  if(sum(a,b,c)>=22):
    print("bust")
  else:
    print("win")

Submission status: Runtime Error

Solution code:
A1, A2, A3 = input().split()

if A1 + A2 + A3 >= 22:
    print("bust")
else :
    print("win")

Submission status: Runtime Error

Solution code:
import numpy as np
n = int(input())
a = np.array(input().split(),dtype=int)
ba = np.array([[int(j) for j in list(format(i,'b').zfill(60))] for i in a]).T
mod = 10**9+7

"""
#2^iをmodで割った余りを出しておく
twos = [1]
for i in range(1,60):
    twos.append((twos[i-1]*2)%mod)

#各baのbitごとに0の個数を求める
c0 = np.sum(ba, axis=1)
"""

#答えは各bitごとの(0の数)*(1の数)より求まる
ans = 0
for i in range(60):
    ans += (((c0[59-i]*(n-c0[59-i]))%mod)*twos[i])%mod

ans %= mod
print(int(ans))

Submission status: Runtime Error

Solution code:
import numpy as np
a = np.array(input().split(),dtype=int)
sum  = a[0] + a[1] + a[2]
if sum > 21:
    print(bust)
else:
    print(win)

Submission status: Runtime Error

Solution code:
a = list(map(int, input().split())
if sum(a)>=22:
    print("bust")
else:
    print("win")

Submission status: Runtime Error

Solution code:
a = list(map(int, input().split())
if sum(a)>=22:
    print(bust)
else:
    print(win)

Submission status: Runtime Error

Solution code:
A = list((int(input().split())))
 
if sum(A) > 21:
  print('bust')
else:
  print('win')

Submission status: Runtime Error

Solution code:
 = input()
b = a.split()

if int(b[0]) + int(b[1]) + int(b[2]) >= 22:
    print("bust")
    
else:
    print("win")

Submission status: Runtime Error

Solution code:
a,b,c=map(int(input().split()))
if a+b+c>=22:
  print("bust")
else:
  print("win")

Submission status: Runtime Error

Solution code:

a1 = int(input())
a2 = int(input())
a3 = int(input())


result = a1 + a2 + a3
if result >= 22:
    print("bust")
else:
    print("win")

Submission status: Runtime Error

Solution code:
n=int(input())
a=list(map(int,input().split()))
v=[0]*64
ans=0
mod=1000000007
zero=0
one=0

index=n-1
while index>=0:
	for k in range(61):
		one=v[k]
		zero=n-1-index-one
		tmp=1<<k
		if((a[index]&tmp)==0):
			ans=(ans+tmp*one)
		else:
			ans=(ans+tmp*zero)
			v[k]=v[k]+1
	index-=1

ans=ans%mod
print(ans)
print()

Submission status: Runtime Error

Solution code:
A = map(int, input().split())

if A[0] + A[1] + A[2] > 22:
  print("bust")
else:
  print("win")

Submission status: Runtime Error

Solution code:
A = input().split()

if A[0] + A[1] + A[2] > 22:
  print("bust")
else:
  print("win")

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
C = int(input())
 
if (A+B+C>=22):
  print("bust")

else:
  print("win")

Submission status: Runtime Error

Solution code:
a, b, c = map(int, input().split())

result = a + b + c

if result => 22:
    print('bust')
else:
    print('win')

Submission status: Runtime Error

Solution code:

n = int(input())
def sub():
    m = int(input())
    for _ in range(m):
        i,j = map(int,input().split(' '))
        if j == 0:
            return True

def main():
    count = 0
    for _ in range(n):
        if sub():
            count += 1

    return print(n - count)

main()

Submission status: Runtime Error

Solution code:
import sys
input = sys.stdin.readline
h,w = map(int,input().split())
a = [list(map(int,input().split())) for i in range(h)]
b = [list(map(int,input().split())) for i in range(h)]
grid = [[0 for i in range(w)] for j in range(h)]
for i in range(h):
  for j in range(w):
    grid[i][j] = abs(a[i][j]-b[i][j])
dp = [[[False for i in range(80*(h+w+1)+1)] for j in range(w)] for k in range(h)]
dp[0][0][grid[i][j]] = True
for j in range(1,w):
  for k in range(80*j+1):
    t = grid[0][j]
    dp[0][j][k] = dp[0][j][k] or dp[0][j-1][k+t] or dp[0][j-1][abs(k-t)]
for i in range(1,h):
  for k in range(80*i+1):
    t = grid[i][0]
    dp[i][0][k] = dp[i][0][k] or dp[i-1][0][k+t] or dp[i-1][0][abs(k-t)]
for i in range(1,h):
  for j in range(1,w):
    for k in range(80*(i+j)+1):
      t = grid[i][j]
      dp[i][j][k] = dp[i][j][k] or dp[i][j-1][k+t] or dp[i][j-1][abs(k-t)] or dp[i-1][j][k+t] or dp[i-1][j][abs(k-t)]
for i in range(12801):
  if dp[h-1][w-1][i]:
    print(i)
    break

Submission status: Runtime Error

Solution code:
import sys
input = sys.stdin.readline
h,w = map(int,input().split())
a = [list(map(int,input().split())) for i in range(h)]
b = [list(map(int,input().split())) for i in range(h)]
grid = [[0 for i in range(w)] for j in range(h)]
for i in range(h):
  for j in range(w):
    grid[i][j] = abs(a[i][j]-b[i][j])
dp = [[[False for i in range(12881)] for j in range(w)] for k in range(h)]
dp[0][0][grid[i][j]] = True
for j in range(1,w):
  for k in range(80*j+1):
    t = grid[0][j]
    dp[0][j][k] = dp[0][j][k] or dp[0][j-1][k+t] or dp[0][j-1][abs(k-t)]
for i in range(1,h):
  for k in range(80*i+1):
    t = grid[i][0]
    dp[i][0][k] = dp[i][0][k] or dp[i-1][0][k+t] or dp[i-1][0][abs(k-t)]
for i in range(1,h):
  for j in range(1,w):
    for k in range(80*(i+j)+1):
      t = grid[i][j]
      dp[i][j][k] = dp[i][j][k] or dp[i][j-1][k+t] or dp[i][j-1][abs(k-t)] or dp[i-1][j][k+t] or dp[i-1][j][abs(k-t)]
for i in range(12801):
  if dp[h-1][w-1][i]:
    print(i)
    break

Submission status: Runtime Error

Solution code:
A1, A2, A3 = map(int, input().split())

if A1+A2+A3 => 22:
    print('bust')
else:
    print('win')

Submission status: Runtime Error

Solution code:
A_1, A_2, A_3 = int(input()).split()

Score = A_1+A_2+A_3
if Score <= 21:
    print(win)
else:
    print(bust)

Submission status: Runtime Error

Solution code:
a,b,c = map(int,input())
if a+b+c <= 21:
  print("win")
else:
  print("bust")

Submission status: Runtime Error

Solution code:
n=int(input())
a=list(map(int,input().split()))
s=0
for j in range(len(bin(max(a)))-2):
    cnt1=0
    cnt0=0
    for i in range(n):
      if (a[i]>>j)&1:
        cnt1+=1
      else:
        cnt0+=1
    s+=(cnt1*cnt0*2**j)%(10**9+7)
print(s%(10**9+7))

Submission status: Runtime Error

Solution code:
s = sum(list(map(int,input().split())))
print("bust" if s s>21 else "win")

Submission status: Runtime Error

Solution code:
as = map(int, input().split())
 
if sum(as) <= 21:
  print("win")
else:
  print("bust")

Submission status: Runtime Error

Solution code:
as = map(int, input().split())

if as.sum() <= 21:
  print("win")
else:
  print("bust")

Submission status: Runtime Error

Solution code:
x,y,z= map(int,input().split())
if sum(x,y,z)>21:
    print("bust")
else:
    print("win")

Submission status: Runtime Error

Solution code:
*A, = map(int, input().split())
print("bust" if sum(a)>=22 else "win")

Submission status: Runtime Error

Solution code:
int(input())

Submission status: Runtime Error

Solution code:
*a,=map(int,open(0))

Submission status: Runtime Error

Solution code:
a,b=map(int,open(0))
if a+b>21:
    print('No')
else:
    print('Yes')

Submission status: Runtime Error

Solution code:
a,b=map(int,input().split())
if a+b>21:
    print('No')
else:
    print('Yes')

Submission status: Runtime Error

Solution code:
a, b, c = map(int, input().split())
if a + b + c < 22:
  print('win')
  else:
    print('bust')

Submission status: Runtime Error

Solution code:
a1, a2, a3 = int(input().split())

if a1+a2+a3 >= 22:
    print("bust")
else:
    print("win")

Submission status: Runtime Error

Solution code:
a,b,c = map(int,input.split())
print('bust') if a+b+c>= 22 else print('win')

Submission status: Runtime Error

Solution code:
#include <iostream>
using namespace std;

int main(void){
  int A1, A2, A3;
  cin >> A1 >> A2 >> A3;
  cout << ((A1 + A2 + A3 >= 22) ? "bust" : "win") << endl;
  return 0;
}

Submission status: Runtime Error

Solution code:
A1,A2,A3 = int(input().split(""))
result = A1+A2+A3
if result>= 22:
  print("bust")
else:
  print("win")

Submission status: Runtime Error

Solution code:
inp = input()
inpLi = inp.split("")
A1 = int(inpLi[0])
A2 = int(inpLi[1])
A3 = int(inpLi[2])
result = A1+A2+A3
if result >= 22:
  print("bust")
else:
  print("win")

Submission status: Runtime Error

Solution code:
h = int(input())
a1,a2,a3 = h.split()
result = a1+a2+a3
if result>22 or result == 22:
  print("bust")
else:
  print("win")

Submission status: Runtime Error

Solution code:
#include<bits/stdc++.h>
using namespace std;
using vi = vector<int>; // intの1次元の型に vi という別名をつける
using vvi = vector<vi>; // intの2次元の型に vvi という別名をつける
typedef pair<int, int> pii;  // pair<int, int> に pii という別名を付ける

int main(){
vi vec(3);
int sum = 0;
for (int i = 0; i < 3; i++){
  cin >> vec.at(i);
  sum += vec.at(i);
}
if (sum <= 21) {
  cout << "win" << endl;
}
else{
 cout << "bust" << endl;
}
}

Submission status: Runtime Error

Solution code:
A=sum(list(map(int,input().stlip()))
      
      if A <=21:
      	print('win')
      else:
      	print('bust')

Submission status: Runtime Error

Solution code:
a,b,c=map(int,input().stlip())
if a+b+c<=21:
	print('win')
  else:
  	print('bust')

Submission status: Runtime Error

Solution code:
a, b, c = map(int, input().split())
print("bust" a + b + c >= 22 else "win")

Submission status: Runtime Error

Solution code:
A = [map(int, input().split())]
if sum(A) >= 22:
    print(bust)
else:
    print(win)

Submission status: Runtime Error

Solution code:
x=[]
for i in range(3):
  print('i番目の数値を入力')
  x[i]=input()
  int(x[i])
  
for i in range(3):
  sum=x[i]
 
if sum >21:
  print('bust')
else:
  print('win')

Submission status: Runtime Error

Solution code:
def sum():
    S = [int(n) for n in input().split()]
    total = sum(S)
    if total >= 22:
        print("bust")
    else:
        print("win")

sum()

Submission status: Runtime Error

Solution code:
    S = [int(n) for n in input().split()]
    total = sum(S)
    if total >= 22:
      print("bust")
    else:
      print("win")

Submission status: Runtime Error

Solution code:
A,B,C = map(int, input().split())
 
if A+B+C>=22:
      print("bust")
else:
      prit("win")

Submission status: Runtime Error

Solution code:
A,B,C = map(int, input().split())

if A+B+C>=22:
  print("bust")
else:
  prit("win")

Submission status: Runtime Error

Solution code:
A,B,C = map(int, input())
if A+B+C >=22:
  print(bust)
else:
  print(win)

Submission status: Runtime Error

Solution code:
a,b.c=map(int,input().split())
if a+b+c>=22:
  print('bust')
else:
  print('win')

Submission status: Runtime Error

Solution code:
import sys

sum = 0
for x in sys.argv:
    sum += int(x)

if sum > 21:
    print('bust')
else:
    print('win')

Submission status: Runtime Error

Solution code:
a ,b ,c= map(int(),input().split())
if a+b+c<=21:
  	print(win)
else:
	print(bust)

Submission status: Runtime Error

Solution code:
a ,b ,c= map(int,input().split())
if a+b+c<=21:
  	print(win)
else:
	print(bust)

Submission status: Runtime Error

Solution code:
a,b,c=map(int,input().split())

if a+b+c<=21:
  print(win)
else:
  print(bust)

Submission status: Runtime Error

Solution code:
A,B,C = map(int,input().split())

ans = A+B+C
if ans>=22:
	print(bust)
elif ans <= 21:
	print(win)

Submission status: Runtime Error

Solution code:
input1 = input()
A1 = int(input1.split([0]))
A2 = int(input1.split([1]))
A3 = int(input1.split([2]))

if A1+A2+A3 > 21:
    print("bust")
else:
    print("win")

Submission status: Runtime Error

Solution code:
s = sum(input().split())
print('bust' if s >= 22 else 'win')

Submission status: Runtime Error

Solution code:
inputNums = input().split()
A1 = inputNums[0]
A2 = inputNums[1]
A3 = inputNums[2]
if (A1 + A2 + A3 >= 22):
    print('bust')
else:
    print('win')

Submission status: Runtime Error

Solution code:
a, b, c = map(int, input().split())
if sum(a, b, c) >= 22:
  print("bust")
else:
  print("win")

Submission status: Runtime Error

Solution code:
s = input()

dDic = {'SUN':7,'MON':6,'TUE':5,'WED':4,'THU':3,'FRI':2,'SAT':1 }

print(int(dDic[s]))

Submission status: Runtime Error

Solution code:
A = map(int,input().split())
if A[0]+A[1]+A[2] < 22:
  print("win")
else:
  print("bust")

Submission status: Runtime Error

Solution code:
a = input().split()
if a[0]+a[1]+a[2] >= 22:
  print ("bust")
else:
  print("win")

Submission status: Runtime Error

Solution code:
a = input().split()
if (a[0]+a[1]+a[2]) >= 22:
  print("bust")
else:
  print("win")

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Sat Jan  4 21:05:55 2020

@author: USER
"""
N=int(input())
A=list(map(int,input().split()))
a=max(A)
v=0
u=0
while v==0:
    if a<2**u:
        v=1
    else:
        u=u+1
u=u-1
e=0
for i in range(u+1):
     c=0
     d=0
     for s in range(len(A)):
        if A[s]//2**(u-i)==1:
            c=c+1
            A[s]=A[s]%2**(u-i)
        else:
            d=d+1
     e=e+c*d*2**(u-i)
print(e%(10**9+7))

Submission status: Runtime Error

Solution code:
f=lambda n:format(n, 'b')[::-1].find('1')
c=0
C=[0]*3
n=int(input())
L = list(map(int, input().split()))
for i in range(n):C[i]=f(L[i])
  print(min(C))

Submission status: Runtime Error

Solution code:
A1, A2, A3 = map(int, input().split())
s = A1 + A2 + A3

if s >= 22:
    print(bust)
else:
    print(win)

Submission status: Runtime Error

Solution code:
number = input().split()
if number[0] + number[1] + number[2] >= 22:
  print('bust')
else:
  print('win')

Submission status: Runtime Error

Solution code:
number = input().split()
if number[0] + number[1] + number[2] >= 22:
  print(bust)
else:
  print(win)

Submission status: Runtime Error

Solution code:
a = list(map(int,input().split()))
if sum(list) >= 22:
  print('bust')
else:
  print('win')

Submission status: Runtime Error

Solution code:
a1,a2,a3=int(input(),split())
if a1+a2+a3>=22 :
    print('bust')
elif a1+a2+a3<=21 :
    print('win')

Submission status: Runtime Error

Solution code:
a1=int(input())
a2=int(input())
a3=int(input())
if a1+a2+a3>=22 :
    print('bust')
elif a1+a2+a3<=21 :
    print('win')

Submission status: Runtime Error

Solution code:
a1=int(input())
a2=int(input())
a3=int(input())
if a1+a2+a3>=22 :
    print('bust')
elif a1+a2+a3<22 :
    print('win')

Submission status: Runtime Error

Solution code:
a1,a2,a3=int(input(),split())
if a1+a2+a3>=22 :
    print('bust')
elif a1+a2+a3<22 :
    print('win')

Submission status: Runtime Error

Solution code:
a1, a2, a3 = map(int, input())
if (a1+a2+a3)>21:
  print("bust")
else:
  print("win")

Submission status: Runtime Error

Solution code:
a,b,c = map(int,input().split())
print("win" if a + b + c = 21 else "bust")

Submission status: Runtime Error

Solution code:
a,b,c = map(int,split())
print("win" if a + b + c =21 else "bust")

Submission status: Runtime Error

Solution code:
a=int(input())
b=5
c=10

if a+b+c >= 22:
  print("bust")
else:
  print("win")

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
c = int(input())
if a+b+c >=22:
  print('bust')
else:
  print('win')

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
c = int(input())
if a+b+c >=22:
  print('bust')
  else:
    print('win')

Submission status: Runtime Error

Solution code:
a = int(input())
print(a)

Submission status: Runtime Error

Solution code:
a=int(input())
b=int(input())
c=int(input())
			
if a+b+c >= 22:
  print("bust")
else:
  print("win")

Submission status: Runtime Error

Solution code:
A, B, C = map(int, input().split())
if A + B + C > 21:
    print("bust")
else
    print("win")

Submission status: Runtime Error

Solution code:
A,B,C=map(int,input.split)
if A+B+C>=22:
    print("bust")
elif A+B+C<=21:
    print("win")

Submission status: Runtime Error

Solution code:
def main():
    """"ここに今までのコード"""

n = int(input())
A = [int(a) for a in input().split()]
mod=10**9+7

ans=0
for i in range(60):
    l=sum([a>>i & 1 for a in A])
    ans+= l*(n-l) <<i
    ans%= mod
    
print(ans) 

if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
def main():
    """"ここに今までのコード"""
 
n = int(input())
A = [int(a) for a in input().split()]
mod=10**9+7
 
ans=0
for i in range(60):
    l=sum([a%2 for a in A])
    ans=(ans+l*(n-l)*(2**i))%mod
    A=[a//2 for a in A]

print(int(ans)) 
 
if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
X=int(input())
Y=int(input())
Z=int(input())

if(X+Y+Z>=22):
    print("bust")
else:
    print("win")

Submission status: Runtime Error

Solution code:
a,b,c = int(input().split(" "))
if a + b + c == 22:
  print("bust")

Submission status: Runtime Error

Solution code:
a=input()
if int(a[0])+int(a[2])+int(a[4])>=22:
 b="bust"
else:
 b="win"
print(b)

Submission status: Runtime Error

Solution code:
a=int(input())
b=int(input())
c=int(input())

if a+b+c >= 22:
  print("bust")
else:
  print("win")

Submission status: Runtime Error

Solution code:
a1,a2,a3=map(int, input().split()) 
if a+b+c >= 22:
  print("bust")
else:
  print("win")

Submission status: Runtime Error

Solution code:
a=int(input())
b=int(input())
c=int(input())
if (a+b+c) >= 22:
  print("bust")
else:
  print("win")

Submission status: Runtime Error

Solution code:
a=int(input())
b=int(input())
c=int(input())
if a+b+c >= 22:
  print("bust")
else:
  print("win")

Submission status: Runtime Error

Solution code:
a=int(input())
b=int(input())
c=int(input())
if a+b+c >= 22:
  print(bust)
else:
  print(win)

Submission status: Runtime Error

Solution code:
#D - Xor Sum 4

import math
n=int(input())
al=list(map(int,input().split()))
a=['{:060b}'.format(x) for x in al]
a=''.join(a)
 
m=math.ceil(math.log(max(1,max(al)),2))
 
ans=0
for i in range(m):
  sum1=a[59-i::60].count('1')
  sum0=n-sum1
  ans+=2**i*sum1*sum0
 
print(ans%(10**9+7))

Submission status: Runtime Error

Solution code:
x, a, b = input().split()
x = int(x)
a = int(a)
b = int(b)

if a + b + c <22:
  print("win")
else:
  print("bust")

Submission status: Runtime Error

Solution code:
a, b, c = int(input().split())
if a+b+c > 21:
  print("bust")
else:
  print("win")

Submission status: Runtime Error

Solution code:
a1, a2, a3 = map(int, input(), split())
 
if a1 + a2 + a3 >= 22:
  print("bust")
else:
  print("win")

Submission status: Runtime Error

Solution code:
a1, a2, a3 = map(int, input(), split())

if a1 + a2 + a3 >= 22:
  print('bust')
else:
  print('win')

Submission status: Runtime Error

Solution code:
a1 = input()
a2 = input()
a3 = input()
a = a1 + a2 + a3

if a >= 22:
  print('bust')
else:
  print('win')

Submission status: Runtime Error

Solution code:
def checker(bbit,listN,N):
    i = 0
    j = 0
    ng = False
    #print(N)
    #print(listN)
    #print(bin(bbit))
    while N > i :
        j=0
        checkFig = 3
        ibit = 1 << i
        while N > j :
            cbit = 1 << j
            if bbit & cbit == 0 :
                #print("A:{} {}".format(j,i))
                pass
            elif listN[j][i] == 3 :
                #print("B:{} {}".format(j,i))
                pass
            elif (listN[j][i] == 0) and (bbit & ibit != 0):
                ng = True
                break
            elif checkFig == 3 :
                #print("C:{} {}".format(j,i))
                checkFig = listN[j][i]
            elif checkFig != listN[j][i] :
                ng = True
                #print("D:{} {}".format(j,i))
                break
            j += 1
        if ng :
            #print(ng)
            break
        else :
            i +=1
    return (not ng)


def main():
    N = int(input())
    listA = [[3 for j in range(N)] for k in range(N)]
    n = 0
    while N > n :
        a = int(input())
        i = 0
        while a > i:
           x,y  = map(int,input().split())
           listA[n][x-1] = y
           i += 1
        n += 1
        
    honestBit = pow(2, N)-1
    honest = 0
    
    while honestBit > 0:
        ok = checker(honestBit,listA,N)
        if ok :
            okbit = honestBit
            oknum = 0
            while okbit > 0 :
                oknum += (okbit % 2) 
                okbit /= 2
            
            if oknum > honest :
                honest = oknum 
        honestBit -= 1
    

main()

Submission status: Runtime Error

Solution code:
A1, A2, A3 = map(int, input().split())
if A1 + A2 + A3 >= 22:
  print('bust')
else;
  print('win')