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