from fractions import Fraction N,D = list(map(int,input().split())) P = Fraction(N,D) N,D = list(map(int,input().split())) Q = Fraction(N,D) print("=" if P == Q else ">" if P > Q else "<")