s = input()[::-1] print("".join([">" if si=="<" else "<" for si in s]))