import sys s = input() for c in reversed(s): if c == '<': sys.stdout.write('>') elif c == '>': sys.stdout.write('<') print('')