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