import sys S = input(); for i in range(len(S)): if S[-i] == '<': sys.stdout.write('>') else: sys.stdout.write('<')