s = input() c = "" for i in s[::-1]: if i == "<": c += ">" else: c += "<" print(c)