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