def Main(): s=input()[::-1] for x in s: if x=="<": print(">",end="") else: print("<",end="") print() Main()