s = str(input()) s=s.replace(">","0") s=s.replace("<",">") s=s.replace("0","<") print(s)