data = input() rev_data = data[::-1] ans = '' for i in range(len(rev_data)): if rev_data[i] == '<': ans += '>' else: ans += '<' print(ans)