a = input()[::-1] for i in a: if i == ">": print("<" ,end="") else: print(">",end="")