S=list(input()) M="" i=len(S)-1 while i>=0: if S[i]=="<": M+=">" else: M+="<" i-=1 print(M)