S=input() ans=[] for i in S: if i=="<": ans.append(">") else: ans.append("<") print("".join(reversed(ans)))