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