S = input() ans = "" for i in S[::-1]: ans += '<' if i == '>' else '>' print(ans)