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