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