s=input() for i in reversed(range(len(s))): if s[i]=='<': print('>',end='') else : print('<',end='') print()