S = input() inverted = ["<" if c == ">" else ">" for c in S[::-1]] print("".join(inverted))