S = input() for s in revesed(S): if s == '<': print('>',end='') else: print('<',end='') print()