S = str(input().rstrip()) resl = [] for i in reversed(S): if i == "<": c = ">" else: c = "<" resl.append(c) res = "".join(resl) print(res)