S = input() A = "" for s in S[::-1]: A += (">", "<")[s == ">"] print(A)