ss = list(input().strip()) ans = "" for s in ss: if s == "<": ans.append(">") else: ans.append("<") print("".join(ans))