# n = int(input())
# data = list(map(int, input().split()))
# for i in range(n-1, -1, -1):
# print(data[i], end = ' ')
# k = int(input())
# data = list(map(int, input().split()))
# for i in range(k):
# print(data[i])
# for i in range(k):
# print(data[i])
# n = int(input())
# data = list(map(int, input().split()))
# for i in range(n):
# for j in range(i, i+n):
# print(data[j%(n)], end = ' ')
# print()
# data = list(map(int, input().split()))
# k = int(input())
# print(data[k-1], end = '')
# arr = str(input())
# a = 0
# b = 0
# for i in range(len(arr)):
# if arr[i] == '(':
# a = a + 1
# else:
# b = b + 1
# print(a, b, sep = ' ')
# n = int(input())
# arr = [0] * n
# for i in range(n-1):
# k = int(input())
# arr[k-1] = 1
#
# for i in range(0, n):
# if arr[i] == 0:
# print(i+1)
n = int(input())
a = list(map(int, input().split()))
for i in range(n):
print(i+1, ": ", sep = '', end = '')
for j in range(n):
if i==j: continue
if a[i]==a[j]: print("= ", end = '')
elif a[i]>a[j]: print("> ", end = '')
elif a[i]<a[j]: print("< ", end = '')
print()