s = input() ans = "" for i in range(len(s)-1, -1, -1): if s[i] == ">": ans += "<" else: ans += ">" print(ans)