l = input() new = [] for i in l[::-1]: if i == "<": new.append(">") elif i == ">": new.append("<") print("".join(new))