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