S=input();Ans=[] for S in reversed(S): if(S=='<'): Ans.append('>') else: Ans.append('<') print(''.join(Ans))