def solve(): s = input()[::-1] ans = "" for e in s: ans += "<" if e == ">" else ">" print(ans) if __name__=="__main__": solve()