100 atcoder#ABC083A. [ABC083A] Libra
[ABC083A] Libra
Score : points
Problem Statement
A balance scale tips to the left if , where is the total weight of the masses on the left pan and is the total weight of the masses on the right pan. Similarly, it balances if , and tips to the right if $L.
Takahashi placed a mass of weight and a mass of weight on the left pan of a balance scale, and placed a mass of weight and a mass of weight 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
- All input values are integers.
Input
Input is given from Standard Input in the following format:
Output
Print Left
if the balance scale tips to the left; print Balanced
if it balances; print Right
if it tips to the right.
3 8 7 1
Left
The total weight of the masses on the left pan is , and the total weight of the masses on the right pan is . Since , we should print Left
.
3 4 5 2
Balanced
The total weight of the masses on the left pan is , and the total weight of the masses on the right pan is . Since , we should print Balanced
.
1 7 6 4
Right
The total weight of the masses on the left pan is , and the total weight of the masses on the right pan is . Since , we should print Right
.