S = input() s = "" for c in S: if c == ">": s = "<" + s else: s = ">" + s print(s)