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