import math a, b = map(int, input().split()) c, d = map(int, input().split()) lcm = math.lcm(b, d) a *= lcm // b c *= lcm // d print(">" if a > c else "=" if a == c else "<")