S = input() T = S[::-1] ans="" for t in T: if t=="<": ans+=">" else: ans+="<" print(ans)