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: Accepted

Solution code:
#coding:utf-8
n=[int(i) for i in input().split()]
if(n[0]+n[1]==n[2]+n[3]):
  print("Balanced")
elif(n[0]+n[1]<n[2]+n[3]):
  print("Right")
else:
  print("Left")

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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('Balanced')

Submission status: Accepted

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

Submission status: Accepted

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("Balanced")

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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

L = a+b
R = c+d

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

Submission status: Accepted

Solution code:
while True:
    a = input().split()
    N = [int(i) for i in a]
    A,B,C,D = N
    if  (A or B or C or D) < 1 or (A or B or C or D) > 10:
        continue
    if A+B > C+D:
        print('Left')
    if A+B < C+D:
        print('Right')
    if A+B == C+D:
        print('Balanced')
    break

Submission status: Accepted

Solution code:
a,b,c,d = input().split()
A = int(a)
B = int(b)
C = int(c)
D = int(d)

left = A+B
right = C+D

if(left>right):
	print("Left")
elif(left<right):
	print("Right")
elif(left==right):
	print("Balanced")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

l=A+B
r=C+D

if r>l:
    print("Right")
elif l>r:
    print("Left")
else:
    print("Balanced")

Submission status: Accepted

Solution code:
w=map(int,raw_input().split())
l=sum(w[0:2])
r=sum(w[2:4])
if l>r:
  print 'Left'
elif l==r:
  print 'Balanced'
else:
  print 'Right'

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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: Accepted

Solution code:
# -*- coding: utf-8 -*-

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: Accepted

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: Accepted

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

Submission status: Accepted

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: Accepted

Solution code:
w=[int(i) for i in input().split()]
if(w[0]+w[1] > w[2]+w[3]):
    ans = "Left"
elif(w[0]+w[1] == w[2]+w[3]):
    ans = "Balanced"
else:
    ans = "Right"
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c,d = [int(i) for i in 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: Accepted

Solution code:
a, b, c, d = [int(i) for i in input().rstrip().split()]
'''
print(a)
print(b)
print(c)
print(d)
'''
#重さ判定
if a + b == c + d:
    print('Balanced')
elif a + b > c + d:
    print('Left')
else:
    print('Right')

Submission status: Accepted

Solution code:
InA = [int(i) for i in input().split()]

if InA[0] + InA[1] > InA[2] + InA[3] :
    print ("Left")
elif InA[0] + InA[1] < InA[2] + InA[3] :
    print ("Right")
elif  InA[0] + InA[1] == InA[2] + InA[3] :
    print ("Balanced")
else:
    print ("err")

Submission status: Accepted

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: Accepted

Solution code:
a,b,c,d = [int(i) for i in input().split()]

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

Submission status: Accepted

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: Accepted

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: Accepted

Solution code:
weight = list( map( int, input().split() ) )
print( "Balanced" if( weight[0]+weight[1] == weight[2] + weight[3] ) else "Left" if( weight[0] + weight[1] > weight[2] + weight[3] ) else "Right" )

Submission status: Accepted

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: Accepted

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: Accepted

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: Accepted

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

Submission status: Accepted

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")
elif L == R:
    print("Balanced")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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: Accepted

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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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: Accepted

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

Submission status: Accepted

Solution code:
x = list(map(int, input().split()))
l, r = sum(x[:2]), sum(x[2:])
if(l == r):
    result = 'Balanced'
elif(l > r):
    result = 'Left'
else:
    result = 'Right'
print(result)

Submission status: Accepted

Solution code:
a = map(int,raw_input().split())
l = a[0] + a[1]
r = a[2] + a[3]
if l == r:
  print "Balanced"
elif l > r:
  print "Left"
else:
  print "Right"

Submission status: Accepted

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: Accepted

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: Accepted

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("Balanced")

Submission status: Accepted

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

Submission status: Accepted

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('Balanced')

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
a,b,c,d = map(int,(input().split()))
A = (a + b)
B = (c + d)
if A > B:
    print("Left")
elif A == B:
    print(" Balanced")
else:
    print("Right")

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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: Accepted

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: Accepted

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: Accepted

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

Submission status: Accepted

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: Accepted

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: Accepted

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: Accepted

Solution code:
w,x,y,z=map(int,input().split())
if w+x<y+z:
	print("Right")
elif w+x>y+z:
	print("Left")
else:
	print("Balanced")

Submission status: Accepted

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: Accepted

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: Accepted

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: Accepted

Solution code:
# coding: utf-8
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: Accepted

Solution code:
import math
import sys

def getinputdata():

    # 配列初期化
    array_result = []
    
    data = input()

    
    array_result.append(data.split(" "))

    flg = 1

    try:


        while flg:

            data = input()

            array_temp = []

            if(data != ""):
                
                array_result.append(data.split(" "))

                flg = 1

            else:

                flg = 0
    finally:


        return array_result





arr_data = getinputdata()

a = int(arr_data[0][0])
b = int(arr_data[0][1])
c = int(arr_data[0][2])
d = int(arr_data[0][3])


if a+b<c+d:
    
    print("Right")
    
elif a+b>c+d:
    
    print("Left")

else:
    
    print("Balanced")

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

Solution code:
import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().strip()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = input().split()
a = int(x[0])
b = int(x[1])
c = int(x[2])
d = int(x[3])
e = int(a + b)
f = int(c + d)
if e < f :
    print('Right')
if e == f :
    print('Balanced')
if e > f :
    print('Left')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

Solution code:
a=map(int,input().split())
r = next(a)
r += next(a)
r -= next(a)
r -= next(a)
print('Left' if r > 0 else 'Balanced' if r == 0 else 'Right')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

# AtCoder Beginner Contest
# Problem A

if __name__ == '__main__':
    A, B, C, D = list(map(int, input().split()))

    left_weight = A + B
    right_weight = C + D

    if left_weight > right_weight:
        print("Left")
    elif left_weight == right_weight:
        print("Balanced")
    else:
        print("Right")

Submission status: Accepted

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: Accepted

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: Accepted

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

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

Submission status: Accepted

Solution code:
#-*- coding: utf-8 -*-
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: Accepted

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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding:utf-8
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: Accepted

Solution code:
import numpy as np
from collections import Counter
import collections
round = lambda x:(x*2+1)//2
a = list(map(float,input().split()))
a = np.array(a)
b = a[0]+a[1]
c = a[2] + a[3]
if b > c:
  print('Left')
elif b < c :
  print('Right')
else :
  print('Balanced')

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
A, B, C, D = map(int, input().rstrip().split())
if A + B > C + D:
    print("Left")
elif A + B == C + D:
    print("Balanced")
elif A + B < C + D:
    print("Right")

Submission status: Accepted

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

l = a+b
r = c+d

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

Submission status: Accepted

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: Accepted

Solution code:
g = list(map(int, input().split()))
l = g[0] + g[1]
r = g[2] + g[3]

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

Submission status: Accepted

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: Accepted

Solution code:
#!/usr/bin/python3
# -*- coding: utf-8 -*-

def main():
    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')

if __name__ == '__main__':
    main()

Submission status: Accepted

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

if (g[0]+g[1])> (g[2]+g[3]):
    print("Left")
elif (g[0]+g[1])< (g[2]+g[3]):
    print("Right")
else:
    print("Balanced")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# get a integer
a = raw_input()

list = a.split()

left = int(list[0])+int(list[1])
right = int(list[2])+int(list[3])

if left < right:
  print("Right")
elif left > right:
  print("Left")
else:
  print("Balanced")

Submission status: Accepted

Solution code:
# coding: utf-8
# hello worldと表示する
g = list(map(int,input().split()))
left = g[0]+g[1]
right = g[2]+g[3]
if left< right:
    print("Right")
elif left > right:
    print("Left")
else:
    print("Balanced")

Submission status: Accepted

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: Accepted

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: Accepted

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

A, B, C, D = list(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: Accepted

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

left = a + b
right = c + d

if left < right:
  print("Right")
elif left > right:
  print("Left")
else:
  print("Balanced")

Submission status: Accepted

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

    l = a + b
    r = c + d

    if l > r:
        print("Left")
    elif l < r:
        print("Right")
    else:
        print("Balanced")

main()

Submission status: Accepted

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: Accepted

Solution code:
# -*- coding: utf-8 -*-
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("Balanced")

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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: Accepted

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

l = a+b
r = c+d
msg = "Balanced"
if l > r:
   msg = "Left"
elif l < r:
   msg = "Right"
print(msg)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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: Accepted

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

Submission status: Accepted

Solution code:
a, b, c, d = (int(i) for i in input().split())

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

Submission status: Accepted

Solution code:
a, b, c, d = map(int, input().split())
#a, b, c, d = 3,4,5,2
if a + b > c + d:
    result = "Left"
elif a + b == c + d:
    result = "Balanced"
elif a + b < c + d:
    result = "Right"
print(result)

Submission status: Accepted

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: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
https://beta.atcoder.jp/contests/abc083/tasks/abc083_a

"""
import sys
from sys import stdin
input = stdin.readline


def solve(A, B, C, D):
    ans = 'Balanced'
    if A+B > C+D:
        ans = 'Left'
    elif A+B < C+D:
        ans = 'Right'
    return ans


def main(args):
    A, B, C, D = map(int, input().split())
    ans = solve(A, B, C, D)
    print(ans)


if __name__ == '__main__':
    main(sys.argv[1:])

Submission status: Accepted

Solution code:
l = list(map(int, input().split()))
s = sum(l[:2]) - sum(l[2:])
print(["Left", "Balanced", "Right"][(1 - (s > 0) + (s < 0))])

Submission status: Accepted

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: Accepted

Solution code:
l1,l2,r1,r2 = map(int,input().split())
if l1+l2>r1+r2:
  print('Left')
elif l1+l2<r1+r2:
  print('Right')
else:
  print('Balanced')

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-



def main():
    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("Balanced")

if __name__ == "__main__": main()

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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('Balanced')

Submission status: Accepted

Solution code:
a, b, c, d = map(int, input().split())
#a, b, c, d = 3,4,5,2
if a + b > c + d:
    result = "Left"
elif a + b == c + d:
    result = "Balanced"
elif a + b < c + d:
    result = "Right"
print(result)

Submission status: Accepted

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: Accepted

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

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

Submission status: Accepted

Solution code:


if __name__ == "__main__":
    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: Accepted

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: Accepted

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("Balanced")

Submission status: Accepted

Solution code:
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: Accepted

Solution code:
import numpy as np
import pdb
import copy

def main():
    [A, B, C, D] = map(int, raw_input().split(' '))
    left = A + B
    right = C + D
    if left >  right:
        print 'Left'
    elif right > left:
        print 'Right'
    else:
        print 'Balanced'

if __name__ == '__main__':
    main()

Submission status: Accepted

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: Accepted

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