S = input() S = S[::-1] print(*map(lambda x: "<" if x==">" else ">", S), sep="")