import sys readline=sys.stdin.readline ans_lst=[] for s in readline().rstrip()[::-1]: if s=="<": ans_lst.append(">") else: ans_lst.append("<") print(*ans_lst,sep="")