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