print("".join(["<>"[x=="<"] for x in input()])[::-1])