S = input() S = list(S[::-1]) print("".join("<" if S[i] == ">" else ">" for i in range(len(S))))