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