m=[] for i in input(): if i == "<": m.append(">") else: m.append("<") print("".join(m)[::-1])