s=input() b="" for a in s: if a=="<": b+=">" else: b+="<" print(b[::-1])