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