import sys input=lambda: sys.stdin.readline().rstrip() S=input() ans="" for s in S[::-1]: if s==">": ans+="<" else: ans+=">" print(ans)