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