# coding: utf-8 # Here your code ! line=input() rev=line[::-1] str_divs=list(rev) #print (str_divs) anss="" for s in str_divs: if s=="<": s=">" anss +=s else: s="<" anss +=s print ("".join(anss))