# a = int(input())
# b = int(input())

# equality check operator (==)
# print(a == b)

# comparison operators
# print(a < b)
# print(a <= b)  # a < b or a == b
# print(a > b)
# print(a >= b)  # a > b or a == b

# or operator (or)
# print(False or False)           # false
# print(False or True)            # true
# print(True or False)            # true
# print(True or True)             # true

# and operator (and)
print(False and False)              # false
print(False and True)               # false
print(True and False)               # false
print(True and True)                # false
