n=input()
l=[['']]
a=0
x=1
b='@'
while a<=n:l+=b,;l=zip(*l[::-1]);m=x%2;b='\/'[m]+x/2*'-|'[m];k=len(b);a+=k;x+=1
l+=b[:n-a]+'>v'[m]+' '*(k-n+a-1),
if m:l=zip(*l[::-1])
for i in l:print''.join(i)
bj1pbnB1dCgpCmw9W1snJ11dCmE9MAp4PTEKYj0nQCcKd2hpbGUgYTw9bjpsKz1iLDtsPXppcCgqbFs6Oi0xXSk7bT14JTI7Yj0nXC8nW21dK3gvMionLXwnW21dO2s9bGVuKGIpO2ErPWs7eCs9MQpsKz1iWzpuLWFdKyc+didbbV0rJyAnKihrLW4rYS0xKSwKaWYgbTpsPXppcCgqbFs6Oi0xXSkKZm9yIGkgaW4gbDpwcmludCcnLmpvaW4oaSk=