x = str(input())
y = str(input())

is_greater = x > y
is_greater_equal = x >= y
is_less = x < y
is_less_equal = x <= y
is_equal = x == y
is_not_equal = x != y

print(is_greater)
print(is_greater_equal)
print(is_less)
print(is_less_equal)
print(is_equal)
print(is_not_equal)
x = str(input())
y = str(input())

is_greater = x > y
is_greater_equal = x >= y
is_less = x < y
is_less_equal = x <= y
is_equal = x == y
is_not_equal = x != y

print(is_greater)
print(is_greater_equal)
print(is_less)
print(is_less_equal)
print(is_equal)
print(is_not_equal)