User ainta is making a web site. This time he is going to make a navigation of the pages. In his site, there are *n* pages numbered by integers from 1 to *n*. Assume that somebody is on the *p*-th page now. The navigation will look like this:

When someone clicks the button "&lt;&lt;" he is redirected to page 1, and when someone clicks the button "&gt;&gt;" he is redirected to page *n*. Of course if someone clicks on a number, he is redirected to the corresponding page.

There are some conditions in the navigation:
 -  If page 1 is in the navigation, the button "&lt;&lt;" must not be printed. -  If page *n* is in the navigation, the button "&gt;&gt;" must not be printed. -  If the page number is smaller than 1 or greater than *n*, it must not be printed. 
You can see some examples of the navigations. Make a program that prints the navigation.
The first and the only line contains three integers *n*, *p*, *k* (3 ≤ *n* ≤ 100; 1 ≤ *p* ≤ *n*; 1 ≤ *k* ≤ *n*)
def page(n,l):
    l1=[]
    if n>2 and n<l-2:
        for j in range(n-2,n+3):
            l1.append(j)
    elif n==1:
        l1=[1,2,3]
    elif n==2:
        l1=[1,2,3,4]
    elif n==l-1:
        l1=[l-3,l-2,l-1]
    elif n==l:
        l1=[l-2,l-1,l]
    
    return l1
l,n,f=map(int,input().split())
ls='<<'
rs='>>'

l2=page(n,l)
ns=" ".join(map(str,l2))
ns1=ns.replace(str(n),'('+str(n)+')')
if '1' in ns:
    print(ns1+' '+rs)
elif str(l) in ns:
    print(ls+' '+ns1)
else:
    print(ls+' '+ns1+' '+rs)
