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