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