S = list(input()) L = [] for j in (reversed(S)) : L.append(j) for k in range(len(L)) : if L[k] == ">" : L[k] == "<" else : L[k] == ">" print("".join(L))