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