ls=list(input()) ls.reverse() for i in range(len(ls)): if ls[i]==">": ls[i]="<" else: ls[i]=">" for i in ls: print(i,end="")