s=input() t=s[::-1] w="" for i in t: if i==">": w+="<" else: w+=">" print(w)