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