X, Y = list(map(str, input().split()))

if X == 'A':

    x = 10

elif X == 'B':

    x = 11

elif X == 'C':

    x = 12

elif X == 'D':

    x = 13

elif X == 'E':

    x = 14

elif X == 'F':

    x = 15



if Y == 'A':

    y = 10

elif Y == 'B':

    y = 11

elif Y == 'C':

    y = 12

elif Y == 'D':

    y = 13

elif Y == 'E':

    y = 14

elif Y == 'F':

    y = 15



if x < y:

    print('<')

elif x == y:

    print('=')

else:

    print('>')

A, B = input().split()

if A > B: 

    print('>')

elif A == B:

    print('=')

else:

    print('<')

X, Y = list(map(str, input().split()))
if X == "A":
    x = 10
elif X == "B":
    x = 11
elif X == "C":
    x = 12
elif X == "D":
    x = 13
elif X == "E":
    x = 14
elif X == "F":
    x = 15
if Y == "A":
    y = 10
elif Y == "B":
    y = 11
elif Y == "C":
    y = 12
elif Y == "D":
    y = 13
elif Y == "E":
    y = 14
elif Y == "F":
    y = 15
if x < y:
    print("<")
elif x == y:
    print("=")
else:
    print(">")

A, B = input().split()
if A > B:
    print(">")
elif A == B:
    print("=")
else:
    print("<")

-X, Y = list(map(str, input().split())) -if X == "A": -    x = 10 -elif X == "B": -    x = 11 -elif X == "C": -    x = 12 -elif X == "D": -    x = 13 -elif X == "E": -    x = 14 -elif X == "F": -    x = 15 -if Y == "A": -    y = 10 -elif Y == "B": -    y = 11 -elif Y == "C": -    y = 12 -elif Y == "D": -    y = 13 -elif Y == "E": -    y = 14 -elif Y == "F": -    y = 15 -if x < y: -    print("<") -elif x == y: +A, B = input().split() +if A > B: +    print(">") +elif A == B: -    print(">") +    print("<")