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