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