a = list(input()) st="" for y in a[::-1]: st += ">" if y == "<" else "<" print(st)