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