# input parameters
a1 = int(input())
b1 = int(input())
c1 = int(input())
a2 = int(input())
b2 = int(input())
c2 = int(input())

# reorder a1 <= b1 <= c1
if a1 <= c1 <= b1:
    c1, b1 = b1, c1
elif b1 <= a1 <= c1:
    a1, b1 = b1, a1
elif b1 <= c1 <= a1:
    a1, b1, c1 = b1, c1, a1
elif c1 <= a1 <= b1:
    a1, b1, c1 = c1, a1, b1
elif c1 <= b1 <= a1:
    a1, b1, c1 = c1, b1, a1

# reorder a2 <= b2 <= c2
if a2 <= c2 <= b2:
    c2, b2 = b2, c2
elif b2 <= a2 <= c2:
    a2, b2 = b2, a2
elif b2 <= c2 <= a2:
    a2, b2, c2 = b2, c2, a2
elif c2 <= a2 <= b2:
    a2, b2, c2 = c2, a2, b2
elif c2 <= b2 <= a2:
    a2, b2, c2 = c2, b2, a2


if a1 == a2 and b1 == b2 and c1 == c2:
    print('Boxes are equal')
elif a1 <= a2 and b1 <= b2 and c1 <= c2:
    print('The first box is smaller than the second one')
elif a1 >= a2 and b1 >= b2 and c1 >= c2:
    print('The first box is larger than the second one')
else:
    print('Boxes are incomparable')

b87a60cdbf4cbe22e362b813fb77c39c044fbe22
<mask token>

<mask token>
if a1 <= c1 <= b1:
    c1, b1 = b1, c1
elif b1 <= a1 <= c1:
    a1, b1 = b1, a1
elif b1 <= c1 <= a1:
    a1, b1, c1 = b1, c1, a1
elif c1 <= a1 <= b1:
    a1, b1, c1 = c1, a1, b1
elif c1 <= b1 <= a1:
    a1, b1, c1 = c1, b1, a1
if a2 <= c2 <= b2:
    c2, b2 = b2, c2
elif b2 <= a2 <= c2:
    a2, b2 = b2, a2
elif b2 <= c2 <= a2:
    a2, b2, c2 = b2, c2, a2
elif c2 <= a2 <= b2:
    a2, b2, c2 = c2, a2, b2
elif c2 <= b2 <= a2:
    a2, b2, c2 = c2, b2, a2
if a1 == a2 and b1 == b2 and c1 == c2:
    print('Boxes are equal')
elif a1 <= a2 and b1 <= b2 and c1 <= c2:
    print('The first box is smaller than the second one')
elif a1 >= a2 and b1 >= b2 and c1 >= c2:
    print('The first box is larger than the second one')
else:
    print('Boxes are incomparable')

a1 = int(input())
b1 = int(input())
c1 = int(input())
a2 = int(input())
b2 = int(input())
c2 = int(input())
if a1 <= c1 <= b1:
    c1, b1 = b1, c1
elif b1 <= a1 <= c1:
    a1, b1 = b1, a1
elif b1 <= c1 <= a1:
    a1, b1, c1 = b1, c1, a1
elif c1 <= a1 <= b1:
    a1, b1, c1 = c1, a1, b1
elif c1 <= b1 <= a1:
    a1, b1, c1 = c1, b1, a1
if a2 <= c2 <= b2:
    c2, b2 = b2, c2
elif b2 <= a2 <= c2:
    a2, b2 = b2, a2
elif b2 <= c2 <= a2:
    a2, b2, c2 = b2, c2, a2
elif c2 <= a2 <= b2:
    a2, b2, c2 = c2, a2, b2
elif c2 <= b2 <= a2:
    a2, b2, c2 = c2, b2, a2
if a1 == a2 and b1 == b2 and c1 == c2:
    print('Boxes are equal')
elif a1 <= a2 and b1 <= b2 and c1 <= c2:
    print('The first box is smaller than the second one')
elif a1 >= a2 and b1 >= b2 and c1 >= c2:
    print('The first box is larger than the second one')
else:
    print('Boxes are incomparable')

# input parameters
a1 = int(input())
b1 = int(input())
c1 = int(input())
a2 = int(input())
b2 = int(input())
c2 = int(input())

# reorder a1 <= b1 <= c1
if a1 <= c1 <= b1:
    c1, b1 = b1, c1
elif b1 <= a1 <= c1:
    a1, b1 = b1, a1
elif b1 <= c1 <= a1:
    a1, b1, c1 = b1, c1, a1
elif c1 <= a1 <= b1:
    a1, b1, c1 = c1, a1, b1
elif c1 <= b1 <= a1:
    a1, b1, c1 = c1, b1, a1

# reorder a2 <= b2 <= c2
if a2 <= c2 <= b2:
    c2, b2 = b2, c2
elif b2 <= a2 <= c2:
    a2, b2 = b2, a2
elif b2 <= c2 <= a2:
    a2, b2, c2 = b2, c2, a2
elif c2 <= a2 <= b2:
    a2, b2, c2 = c2, a2, b2
elif c2 <= b2 <= a2:
    a2, b2, c2 = c2, b2, a2


if a1 == a2 and b1 == b2 and c1 == c2:
    print('Boxes are equal')
elif a1 <= a2 and b1 <= b2 and c1 <= c2:
    print('The first box is smaller than the second one')
elif a1 >= a2 and b1 >= b2 and c1 >= c2:
    print('The first box is larger than the second one')
else:
    print('Boxes are incomparable')
