#include <stdio.h>
int main()
{
int a,i,j;
int arr[1001];
scanf("%d",&a);
for(i= 0; i < a; i++)
{
scanf("%d",&arr[i]);
}
//arr[0] = 1
//arr[1] = 2
//arr[2] = 3
//arr[3] = 2
//arr[4] = 1
for( i = 0; i < a; i++)
{
printf("%d:", i+1 );
for(j = 0; j < a; j++)
{
if(i == j)
{
continue;
}
if(arr[i] > arr[j])
{
printf(" >");
}
else if(arr[i] < arr[j])
{
printf(" <");
}
else if(arr[i] == arr[j])
{
printf(" =");
}
}
printf("\n");
}
return 0;
}