Problem:


Score : 100 points

Problem Statement

A balance scale tips to the left if L>R, where L is the total weight of the masses on the left pan and R is the total weight of the masses on the right pan. Similarly, it balances if L=R, and tips to the right if L<R.

Takahashi placed a mass of weight A and a mass of weight B on the left pan of a balance scale, and placed a mass of weight C and a mass of weight D on the right pan.

Print Left if the balance scale tips to the left; print Balanced if it balances; print Right if it tips to the right.

Constraints

1\leq A,B,C,D \leq 10

All input values are integers.

Input

Input is given from Standard Input in the following format:

A B C D

Output

Print Left if the balance scale tips to the left; print Balanced if it balances; print Right if it tips to the right.

Sample Input 1

3 8 7 1

Sample Output 1

Left

The total weight of the masses on the left pan is 11, and the total weight of the masses on the right pan is 8. Since 11>8, we should print Left.

Sample Input 2

3 4 5 2

Sample Output 2

Balanced

The total weight of the masses on the left pan is 7, and the total weight of the masses on the right pan is 7. Since 7=7, we should print Balanced.

Sample Input 3

1 7 6 4

Sample Output 3

Right

The total weight of the masses on the left pan is 8, and the total weight of the masses on the right pan is 10. Since 8<10, we should print Right.



Sample input:
3 8 7 1


Sample output:
Left

Submission status: Wrong Answer

Solution code:
A, B, C, D = map(int,input().split())
if A + B < C + D:
  print("Left")
elif A + B == C + D:
  print("Balanced")
else:
  print("Right")

Submission status: Wrong Answer

Solution code:
a = list(map(int, input().split()))
a = a[0] + a[1] - a[2] - a[3]
if a < 0:
    print('Left')
elif a > 0:
    print('Right')
else:
    print('Balanced')

Submission status: Wrong Answer

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

l=a+b;r=c+d

if l-r<0:
  print('right')
  
elif l>r:
  print('Left')
  
else:
  print('Balanced')

Submission status: Wrong Answer

Solution code:
A,B,C,D=map(int,input().split())
if A+B>C+D:
    print("left")
elif A+B<C+D:
    print("Right")
else:
    print("Balanced")

Submission status: Wrong Answer

Solution code:
a,b,c,d = map(int,input().split())
#lis = list(map(int,input().split()))
if a+b>c+d:print("Left")
elif a+b>c+d:print("Right")
else:print("Balanced")

Submission status: Wrong Answer

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

# c=[]
#  for i in b:
#     c.append(i)
A,B,C,D = map(int,input().split())
# f = list(map(int,input().split()))
#j = [input() for _ in range(a)]
# h = []
# for i in range(e1):
#     h.append(list(map(int,input().split())))
if A+B>C+D:
    print("Left")
if A+B==C+D:
    print("Balanced")
else:
    print("Right")

Submission status: Wrong Answer

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

# c=[]
#  for i in b:
#     c.append(i)
A,B,C,D = map(int,input().split())
# f = list(map(int,input().split()))
#j = [input() for _ in range(a)]
# h = []
# for i in range(e1):
#     h.append(list(map(int,input().split())))
if A+B>=C+D:
    print("Left")
if A+B==C+D:
    print("Balanced")
else:
    print("Right")

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
a += b
c += d
if a>c:
    print('Left')
elif c < a:
    print('Right')
else:
    print('Balanced')

Submission status: Wrong Answer

Solution code:
A, B, C, D = map(int, input().split())
if A+B < C+D:
    print("Right")
elif A+B == C+D:
    print("Left")
else:
    print("Balanced")

Submission status: Wrong Answer

Solution code:
a,b,c,d = map(int,input().split())
if a+b<c+d:
  print("Left")
elif a+b==c+d:
  print("Balanced")
else:
  print("Right")

Submission status: Wrong Answer

Solution code:
S = list(input())
lenS = len(S)
S = S + ['.']
K = lenS
i = 0
ps = S[0]
for s in S:
    if s != ps:
        K = min(K, max(i, lenS-i))
        ps = s
    i += 1
print(K)

Submission status: Wrong Answer

Solution code:
l=list(map(int,input().split()))
x,y=l[0]+l[1],l[2]+l[3]
if(x<y):
    print("Left")
elif(x==y):
    print("Balanced")
else:
    print('Right')

Submission status: Wrong Answer

Solution code:
a,b,c,d = list(map(int, input().split()))
if sum((a,b)) > sum((c,d)):
    print("Left")
elif sum((a,b)) < sum((c,d)):
    print("Right")
else:
    print("Balance")

Submission status: Wrong Answer

Solution code:
A, B, C, D = map(int, input().split())
L = A + B
R = C + D

if L > R:
    print('Left')
elif L < R:
    print('Right')
else:
    print('Balnced')

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
a+=b
c+=d
if a>c:
  print("Left")
elif a<c:
  print("Right")
else:
  print("Blanced")

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int,input().split())
if a + b > c + d:
    print('Left')
if a + b < c + d:
    print('Right')
else:
    print('Balanced')

Submission status: Wrong Answer

Solution code:
import random
A = random.randint(1,10)
B = random.randint(1,10)
C = random.randint(1,10)
D = random.randint(1,10)
L = str(A) + str(B)
R = str(C) + str(D)
if L > R:
  print("Left")
elif L == R:
  print("Balanced")
elif L < R:
  print("Right")

Submission status: Wrong Answer

Solution code:
a, b, c, d = list(map(int, input().split()))
l = a + b
r = c + d
if l > r:
  print('Right')
elif l == r:
  print('Balanced')
else:
  print('Left')

Submission status: Wrong Answer

Solution code:
# # Make IO faster
# import sys
# input = sys.stdin.readline

# # get single (or) multiple str
# X = input()

# # get single int
# N = int(input())
# # get multiple int (e.g., 2)
# X, Y = map(int, input().split())
# # get multiple int (e.g., 2) for N lines
# XY = [list(map(int, input().split())) for _ in range(N)]

# from IPython import embed; embed(); exit();

# 全部入り
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
import numpy as np
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

A, B, C, D = MAP()
if (A + B < C + D):
    print("Right")
elif A + B == C + D:
    print("Balanced")
else:
    print("Right")

Submission status: Wrong Answer

Solution code:
A,B,C,D=map(int, input().split())
if A+B>C+D:
  print('Left')
elif A+B>C+D:
  print('Right')
else:
  print('Balanced')

Submission status: Wrong Answer

Solution code:
in_list = input().split(' ')
A = in_list[0]
B = in_list[1]
C = in_list[2]
D = in_list[3]

L = int(A) + int(B)
R = int(C) + int(D)

print(L, R)

if L < R:
    print('Right')
elif L > R:
    print('Left')
else:
    print('Balanced')

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
if a+b>c+d: print("left")
elif a+b<c+d: print("right")
else: print("balanced")

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline

A,B,C,D=list(map(int,input().split()))
if A+B == C+D:
    print('Balanced')
elif A+B < C+D:
    print('Left')
else:
    print('Right')

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline

A,B,C,D=list(map(int,input().split()))
if A+B == C+D:
    print('Balanced')
elif A+B < C+B:
    print('Left')
else:
    print('Right')

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
x=a+b
y=c+d
if x>y:
  print("Left")
if x>y:
  print("Right")
if x==y:
  print("Balanced")

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int, input().split())
R = a+b
L = c+d
if R > L:
  print('Right')
elif R < L:
  print('Left')
else:
  print('Balanced')

Submission status: Wrong Answer

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

if A + B > C + D:
    print('Left')
elif A + B < C + D:
    print('Right')
else:
    print('Balanced')

Submission status: Wrong Answer

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

L=A+B
R=C+D

if L>R:
	print("Left")
elif L<R:
	print("Right")
else:
	print("Blanced")

Submission status: Wrong Answer

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

if (A + B > C + D):
    print('Left')
elif (A + B < C + B):
    print('Right')
else:
    print('Balanced')

Submission status: Wrong Answer

Solution code:
print("Hello")

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int, input().split())
if a+b > c+d:
    print('Left')
elif a+b < c+d:
    print('right')
else:
    print('Balanced')

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
print('RLiegfhft'[a+b>c+d::2] if a+b!=c+d else 'Balanced')

Submission status: Wrong Answer

Solution code:
A,B,C,D = map(int,input().split())
L = A + B
R = C + D
print('Left' if L > R else 'Balance' if L ==R else 'Right')

Submission status: Wrong Answer

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

if a + b > c + d:
    print("left")
elif a + b == c + d:
    print("Balanced")
else:
    print("Right")

Submission status: Wrong Answer

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

left = a + b
right = c + d

if left == right:
  print("Balanced")
elif left > right:
  print("Left")
else:
  print("Rigtht")

Submission status: Wrong Answer

Solution code:
A,B,C,D=map(int,input().split())
 
if (A+B)>(C+D):
  print('left')
elif (A+B)==(C+D):
  print('Balanced')
else:
  print('Right')

Submission status: Wrong Answer

Solution code:
a,s,d,f=map(int,input().split())
a+=s;d+=f
print("Right"if a<s else"Left"if a>s else"Balanced")

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
print("Left"if a+b>c+d else "RIght" if a+b<c+d else "Balanced")

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
if (a+b)>(c+d):
  print('Left')
if (a+b)==(c+d):
  print('Balanced')
else:
  print('Right')

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
if a+b>c+d:
  print('Left')
if a+b==c+d:
  print('Balanced')
else:
  print('Right')

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int, input().split())
l, r = a + b, c + d
print('Left' if l > r else 'Balanced' if l == r else 'right')

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int, input().split())
if a+b < c+d:
    print("Left")
elif a+b > c+d:
    print("Right")
else:
    print('Balanced')

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
l=a+b
r=c+d
if l==r:
  print("Balanced")
elif r<l:
  print("Right")
else:
  print("Left")

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
if a+b>c+d:
    print("Right")
elif a+b==c+d:
    print("Balanced")
else:
    print("Left")

Submission status: Wrong Answer

Solution code:
a,b,c,d = map(int, input().split())
if a+c == b+d:
    print("Balanced")
elif a+c > b+d:
    print("Left")
else:
    print("Right")

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
if a+b>c+d:
  print('Right')
elif (a+b)==(c+d):
  print('Balanced')
else:
  print('Left')

Submission status: Wrong Answer

Solution code:
A,B,C,D = map(int, input().split())
if (A+B) == (C+D):
    print("BAlanced")
elif (A+B) > (C+D):
    print("Left")
else:
    print("Right")

Submission status: Wrong Answer

Solution code:
A,B,C,D=map(int,input().split())
if A+B==C+D: print('Balanced')
else: print('Left' if A+B > C+D else 'Righe')

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
if (a+b)>(c+d):
  print("Right")
elif a+b==c+d:
  print("Balanced")
else:
  print("Left")

Submission status: Wrong Answer

Solution code:
s = input()
n = len(s)
# 区間は2以上の長さ
if n % 2 != 0:
    for i in range(1, n):
        a = s[n // 2]
        if s[n // 2 - 1 - i] != a or s[n // 2 + i] != a:
            print(n // 2 + i)
            exit()
else:
    for i in range(1, (n - 1) // 2 + 1):
        b = s[(n-1)//2]
        if s[(n-1)//2-i] != b or s[(n-1)//2+i] != b:
            print((n - 1) / 2 + i)
            exit()
print(n)

Submission status: Wrong Answer

Solution code:
li = input().split()
N = li[0]
A = li[1]
B = li[2]
N = int(N)
A = int(A)
B = int(B)
out = 0

for i in range(N+1):
    tmp = 0
    i_ori = i
    s = str(N)
    for j in range(len(s)):
        tmp += i%10
        i = i//10
    if (tmp <= B and tmp >= A):
        out += i_ori

print(out)

Submission status: Wrong Answer

Solution code:
a,b,c,d = map(int, input().split())
L = a+b
R = c+d
if L > R:
  print('left')
elif R > L:
  print('right')
else:
  print('balanced')

Submission status: Wrong Answer

Solution code:
a,b,c,d = map(int, input().split())
left = a+b
right = c+d
if left > right:
  print('left')
elif right > left:
  print('right')
else:
  print('balanced')

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3

A, B, C, D = map(int, input().split())

if A+B > C+D:
    print("Left")
elif A+B == C+D:
    print("Blanced")
else:
    print("Right")

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
if a+b>=c+d:
  print("Left")
elif a+b==c+d:
  print("Balanced")
else:
  print("Right")

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
if a+b>=c+d:
  print("Left")
elif a+b==c+d:
  print("Balaced")
else:
  print("Right")

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
print("balanced" if a+b==c+d else "left" if a+b>c+d else "right")

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int, input().split())
L= a+b
R=c+d
if L > R:
 print("Left")
if L < R:
 print("Right")
else: 
 print("Balanced")

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int, input().split())
if a+b > c+d:
 print("Left")
if a+b < c+d:
 print("Right")
else: 
 print("Balanced")

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int, input().split())
if a+b > c+d:
 print("Left")
if a+b < c+d:
 print("Right")
else: 
 print("Balnced")

Submission status: Wrong Answer

Solution code:
A,B,C,D=map(int,input().split())
e=A+B-C-D
print("Balanced")if e==0 else print(["Left","0","Right"][int(e/abs(e))])

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int, input().split())
if a+b >= c+d:
    print('Left')
elif a+b == c+d:
    print('Balanced')
else:
    print('Right')

Submission status: Wrong Answer

Solution code:
a,b,c,d = [int(x) for x in input().split()]
r = a+b
l = c+d
if r > l:
  print("Right")
elif l > r:
  print("Left")
else:
  print("Balanced")

Submission status: Wrong Answer

Solution code:
A, B, C, D = map(int, input().split())
L = A + B
R = C + D
if L > R:
  print("Left")
elif L == R:
  print("Left")
else:
  print("Left")

Submission status: Wrong Answer

Solution code:
A,B,C,D = map(int,input().split())
if (A+B) > (C+D):
    print("Left")
elif (A+B) == (C+D):
    print("Balaced")
else:
    print("Light")

Submission status: Wrong Answer

Solution code:
A,B,C,D = map(int,input().split())
if A+B > C+D:
    print("Left")
elif A+B == C+D:
    print("Balaced")
else:
    print("Light")

Submission status: Wrong Answer

Solution code:
A, B, C, D = map(int, input().split())
if A+B > C+D:
    print("Left")
elif A+B == C+D:
    print("Balaced")
else:
    print("Light")

Submission status: Wrong Answer

Solution code:
A, B, C, D = map(int, input().split())
if A+B > C+D:
    print("Left")
elif A+B == C+D:
    print("Balaced")
elif A+B < C+D:
    print("Light")

Submission status: Wrong Answer

Solution code:
a,b,c,d = map(int, input().split())
if a+b>c+d:
  print("Left")
if a+b==c+d:
  print("Balanced")
else:
  print("Right")

Submission status: Wrong Answer

Solution code:
t = [int(v) for v in input().split(' ')]
n = t[0] + t[1]
n2 = t[2] + t[3]
 
if n > n2:
  print(n)
elif n < n2:
  print(n2)

Submission status: Wrong Answer

Solution code:
A, B, C, D = map(int, input().split())
if A + B > C + D:
    print("Left")
elif A + B == C + D:
    print("Balanceed")
else:
    print("Right")

Submission status: Wrong Answer

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

if A+B>C+D:
  print("Left")
if A+B==C+D:
  print("Balanced")
else:
  print("Right")

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int, input().split())
l = a + b
r = c + d
if l > r:
    print("Left")
if l == r:
    print("Balanced")
else:
    print("Right")

Submission status: Wrong Answer

Solution code:
a,b,c,d = map(int,input().split())
print('left' if a+b>c+d else 'Right' if a+b<c+d else 'Balanced')

Submission status: Wrong Answer

Solution code:
w = list(map(int, input().split()))
if w[:2]>w[:-3]:
    print("Left")
elif w[:2]==w[:-3]:
    print("Balanced")
else:
    print("Right")

Submission status: Wrong Answer

Solution code:
# coding: utf-8
# Your code here!
a, b, c, d = map(int,input().split())
l = a + b
r = c + d
if l > r:
    print('Left')
elif l < r:
    print('Right')
else:
    print('Balancced')

Submission status: Wrong Answer

Solution code:
A,B,C,D=map(int,input().split())
if A+B>C+D:
    print('Left')
if A+B==C+D:
    print('Balanced')
else:
    print('Right')

Submission status: Wrong Answer

Solution code:
A, B, C, D = map(int, input().split())
print("Left" if A+B==C+D else "Balanced" if A+B==C+D else "Right")

Submission status: Wrong Answer

Solution code:
a,b,c,d = map(int, input().split())
if a+b==c+d: print('Balanced')
elif a+b<c+d: print('Left')
else: print('Right')

Submission status: Wrong Answer

Solution code:
l =list(map(int,input().split()));a=sum(l[:2])-sum(l[3:]);print('Left') if a>0 else print('Right')if a<0 else print('Balanced')

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int, input().split())
print('Left' if a+b > c+d else 'Right')

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
l=a+b
r=c+d
if l < r:
  print("Right")
elif l==r:
  print("Blanced")
else:
  print(l,r)
  print("Left")

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
l=a+b
r=c+d
if l < r:
  print("Right")
elif l==r:
  print("Balanceed")
else:
  print("Left")

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
l=a+b
r=c+d
if l < r:
  print("Right")
elif l==r:
  print("Blanceed")
else:
  print("Left")

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
l=a+b
r=c+d
if l < r:
  print("Right")
else:
  print("Left")

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
if a+b<c+d:
    print('Right')
elif a+b==c+d:
    print('Balanced')
else:
    ('Left')

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
if a+b<c+d:
    print('Right')
elif a+b>c+d:
    print('Left')
else:
    ('Balanced')

Submission status: Wrong Answer

Solution code:
"""
author : halo2halo
date : 24, Jan, 2020
"""

import sys
import itertools

# import numpy as np

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

A, B, C, D = map(int, readline().split())

print('Left' if A + B < C + D else 'Balanced' if A + B == C + D else 'Right')

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int,input().split())
left = a + b
right = c + d
if left > right:
  print("Left")  
elif right > left:
  print("Right")
else:
  print("Blanced")

Submission status: Wrong Answer

Solution code:
A, B, C, D = map(int, input().split())
L=A+B
R=C+D
print("left" if R < L else "right" if R > L else "Balanced")

Submission status: Wrong Answer

Solution code:
A, B, C, D = map(str, input().split())
L=A+B
R=C+D
print("left" if R < L else "right" if R > L else "Balanced")

Submission status: Wrong Answer

Solution code:


import numpy as np

a,b,c,d=map(int,input().split())
k=a+b-c-d
if(k<0):print("Left")
elif(k==0):print("Balanced")
else:print("Right")

Submission status: Wrong Answer

Solution code:
A, B, C, D = map(int, input().split())
 
if (A + B) == (C + D):
  r = 'Balanced'
if (A + B) > (C + D):
  r = 'Left'
else:
  r = 'Right'
print(r)

Submission status: Wrong Answer

Solution code:
A, B, C, D = map(int, input().split())
 
if A + B == C + D:
  r = 'Balanced'
if A + B > C + D:
  r = 'Left'
else:
  r = 'Right'
print(r)

Submission status: Wrong Answer

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

if A + B == C + D:
  r = 'Balanced'
if A + B > C + D:
  r = 'Left'
else:
  r = 'Right'
print(r)

Submission status: Wrong Answer

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

if a+b == c+d:
    print('Balanced')
elif a+b > c+d:
    print('Left')
elif a+b < c+d:
    print('Rignt')

Submission status: Wrong Answer

Solution code:
a,b,c,d = map(int, input().split())
if a+b > c+d:
    print("Left")
if a+b == c+d:
    print("Balanced")
else:
    print("Right")

Submission status: Wrong Answer

Solution code:
A, B, C, D = map(int, input().split())
if A+B == C+D:
  print("Balanced")
if A+B > C+D:
  print("Left")
if A+B < C+D:
  print("Balanced")

Submission status: Wrong Answer

Solution code:
A, B, C, D = map(int, input().split())
if A+B == C+D:
  print("Balanced")
if A+B > C+D:
  print("Right")
if A+B < C+D:
  print("Left")

Submission status: Wrong Answer

Solution code:
A, B, C, D = map(int, input().split())
if A+B == C+D:
  print("Balanced")
if A+B > C+D:
  print("Right")
if A+B < C+D:
  print("left")

Submission status: Wrong Answer

Solution code:
A, B, C, D = map(int, input().split())
if A+B == C+D:
  print("Balance")
if A+B > C+D:
  print("Right")
if A+B < C+D:
  print("left")

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
if a+b<c+d:
  print('Left')
if a+b>c+d:
  print('Right')
else:
  print('Balanced')

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
if a+b>c+d:
  print('Left')
if a+b<c+d:
  print('Right')
else:
  print('Balanced')

Submission status: Wrong Answer

Solution code:
# coding: utf-8
import sys


def main(argv=sys.argv):
  a, b, c, d = map(int, input().split(' '))
  
  if a + b > c + d:
    print('left')
  elif a + b < c + d:
    print('Right')
  else:
    print('Balanced')
    
    
  return 0


if __name__ == '__main__':
  sys.exit(main())

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int, input().split())
print("left" if a+b > c+d else "Balanced" if a+b == c+d else "Right")

Submission status: Wrong Answer

Solution code:
a,b,c,d = map(int,input().split())
if a+b>c+b:
    print("Left")
elif a+b<c+b:
    print("Right")
else :
    print("Balanced")

Submission status: Wrong Answer

Solution code:
import sys

a, b, c, d = map(int, sys.stdin.readline().split())

if a + b < c + d:
    print("Left")
elif a + b == c + d:
    print("Balanced")
else:
    print("Right")

Submission status: Wrong Answer

Solution code:
A,B,C,D = list(input().split())

if A[0] + B[0] > C[0] + D[0]:
    print("Left")
elif A[0] + B[0] < C[0] + D[0]:
    print("Right")
elif A[0] + B[0] == C[0] + D[0]:
    print("Balanced")

Submission status: Wrong Answer

Solution code:
A,B,C,D = list(input().split())

if A[0] + B[0] > C[0] + D[0]:
    print("Left")
elif A[0] + B[0] < C[0] + D[0]:
    print("Right")
else:
    print("Balanced")

Submission status: Wrong Answer

Solution code:
A, B, C, D = map(int, input().split())
if A + B >> C + D:
  print('Left')
elif A + B == C + D:
  print('Balanced')
elif A + B << C + D:
  print('Right')

Submission status: Wrong Answer

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

l= a+b
r= c+d

if l<r:
  print('Right')
elif l==r:
  print('Balanced')
else:
  print('left')

Submission status: Wrong Answer

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

l= a+b
r= c+d

if l<r:
  print('Right')
elif l==r:
  print('Balanced')
else:
  print('left')

Submission status: Wrong Answer

Solution code:
A, B, C, D = map(int, input().split())
left = A + B
right = C + D

if left > right:
    ans = "Left"
elif left < right:
    ans = "right"
else:
    ans = "Balanced"

print(ans)

Submission status: Wrong Answer

Solution code:
a,b,c,d = map(int, input().split())
if a+b < c+d:
  print("Left")
elif a+b == c+d:
  print("Balanced")
else:
  print("Right")

Submission status: Wrong Answer

Solution code:
def examA():
    A, B, C, D = LI()
    if A+B==C+D:
        ans= "Balanced"
    elif A+B<C+D:
        ans = "right"
    else:
        ans = "left"
    print(ans)


import sys,copy,bisect,itertools,heapq,math
from heapq import heappop,heappush,heapify
from collections import Counter,defaultdict,deque
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))
def LS(): return sys.stdin.readline().split()
def S(): return sys.stdin.readline().strip()
mod = 10**9 + 7
inf = float('inf')

examA()

Submission status: Wrong Answer

Solution code:
a,b,c,d = map(int,input().split())
if a+b<c+d:
    print('Left')
elif a+b==c+d:
    print('Balanced')
else:
    print('Right')

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
A, B, C, D = map(int, input().split())
if(A+B > C+D):
  print('Left')
elif(A+B < C+D):
  print('Right')
else:
  print('Balabced')

Submission status: Wrong Answer

Solution code:
a, b, c, d, = (int(i) for i in input().split())
l = a + b
r = c + d
if l > r:
    print('Left')
elif l < r:
    print('Right')
else:
    print('Baranced')

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int, input().split())
if(a+b)>(c+d):
    print("Left")
if(a+b)==(c+d):
    print("Balanced")
else:
    print("Right")

Submission status: Wrong Answer

Solution code:
x = [int(i) for i in input().split()]
ans = 0
for i in range(1,x[0]+1):
    tmp = sum([int(st) for st in str(i)])
    if x[1]<=tmp and x[2] >= tmp:
        ans += i
print(ans)

Submission status: Wrong Answer

Solution code:
a,b,c,d = map(int,input().split())
L = a + b
R = c + d
if L > R:
    print("Left")
elif L == R:
    print("balanced")
else:
    print("Right")

Submission status: Wrong Answer

Solution code:
a,b,c,d = map(int,input().split())
L = a + b
R = c + d
if L > R:
    print('Left')
elif L == R:
    print('balanced')
else:
    print('Right')

Submission status: Wrong Answer

Solution code:
a,b,c,d = map(int,input().split())
L = a + b
R = c + d
if L > R:
    print('Left')
elif L == R:
    print('balanced')
elif L < R:
    print('Right')

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int, input().split())
if a + b == c + d:
  print("Balanced")
elif a + b > c + d:
  print("Left")
elif a+b < c + d:
  print("RIght")

Submission status: Wrong Answer

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

if a + b > c + d:
    print('Left')
elif a + b < c + d:
    print('Balanced')
else:
    print('Right')

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int, input().split())
left = a + b
right = c + d
if left < right:
    print('Left')
elif left > right:
    print('Right')
else:
    print('Balanced')

Submission status: Wrong Answer

Solution code:
a,b,c,d = map(int,input().split())
if a + b < c + d:
    print('Right')
elif a + b > c + d:
    print('Left')
else:
    print('Balance')

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int, input().split())
l = a + b
r = c + d

if l < r:
  print('Left')
elif l == r:
  print('Balanced')
else:
  print('Right')

Submission status: Wrong Answer

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

print("Left" if a+b >= c+d else "Balanced" if a+b == c+d else "Right")

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int, input().split())
if a+b < c+d:
  print("Left")
elif a+b == c+d:
  print("Balanced")
else:
  print("Right")

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int,input().split())
if (a+b)>(c+d):
	print("Right")
elif (a+b)<(c+d):
	print("Left")
else: print("Balanced")

Submission status: Wrong Answer

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

ans = 0
for i in range(int(a[0])+1):
    i=str(i)
    i.split()
    sum_num=0
    for j in i:
        sum_num+=int(j)
    if sum_num>=int(a[1]) and sum_num<=int(a[2]):
        ans += int(i)
        print(i)

print(ans)

Submission status: Wrong Answer

Solution code:
a,b,c,d = map(int,input().split())
if a+b == c+d:
  print('Balanced')
elif a+b > c+d:
  print('Right')
elif a+b < c+d:
  print('Left')

Submission status: Wrong Answer

Solution code:
a,b,c,d = map(int,input().split())
if a+b == c+d:
  print('Balanced')
elif a+b > c+d:
  print('Right')
else:
  print('Left')

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline
a,b,c,d=map(int,input().split())

l=a+b
r=c+d
if l==r:
  print('Balanced')
elif l>r:
  print('Right')
else:
  print('Left')

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline
a,b,c,d=map(str,input().split())

l=a+b
r=c+d
if l==r:
  print('Balanced')
elif l>r:
  print('Right')
else:
  print('Left')

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int, input().split())
if a + b > c + d:
    print("left")
elif a + b == c + d:
    print("Balanced")
else:
    print("Right")

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int,input().split())
if a + b > c + d:
    print('Left')
elif a + b < c + d:
    print('Balanced')
else:
    print('Right')

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int, input().split())
if a + b > c + d:
    print('Left')
elif a + b < c + d:
    print("Right")
else:
    print("Right")

Submission status: Wrong Answer

Solution code:
A,B,C,D=[int(x) for x in input().split()]
A+=B
C+=D
if A==B:
  print('Balanced')
elif A>B:
  print('Left')
else:
  print('Right')

Submission status: Wrong Answer

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

print('Right' if a+b < c+d else 'left' if a+b > c+d else 'Balanced')

Submission status: Wrong Answer

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

print('Right' if a+b > c+d else 'left' if a+b < c+d else 'Balanced')

Submission status: Wrong Answer

Solution code:
a,b,c,d = map(str,input().split())
print("Left" if a+b > c+d else "Balanced" if (a+b) == (c+d) else "Right")

Submission status: Wrong Answer

Solution code:
a,b,c,d = map(int,input().split())
if a+b<c+d:
    print("Left")
elif a+b== c+d:
    print("Balanced")
else:
    print("Right")

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
if a+b<c+d:
  print("Left")
elif a+b>c+d:
  print("Right")
else:
  print("Balanced")

Submission status: Wrong Answer

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

print('left' if a+b>c+d else 'Right' if a+b<c+d else 'Balanced')

Submission status: Wrong Answer

Solution code:
A,B,C,D=map(int, input().split())
if A+C == B+D:
  print("Balanced")
elif A+C > B+D:
  print("Left")
else:
  print("Right")

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int, input().split())
l = a + b
r = c + d
if l > r:  print('Left')
if l == r: print('Balance')
if l < r:  print('Right')

Submission status: Wrong Answer

Solution code:
a,b,c,d = map(int, input().split())
if a+b>c+d:
    print("Left")
if a+b<c+d:
    print("Right")
else:
    print("Balanced")

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-S
A,B,C,D = [int(i) for i in input().split()]

if A + B > C + D:
    print("Left")
elif A + B == C + D:
    print("Bakanced")
elif A + B < C + D:
    print("Right")

Submission status: Wrong Answer

Solution code:
a,b,c,d = list(map(int, input().split()))
if((a + b) > (c+d)):
  print("Left")
elif((a + b) < (c+d)):
  print("Right")
else:
  print("Balance")