s=input() t = ['']*len(s) for i, c in enumerate(s[::-1]): t[i] = '<' if c=='>' else '>' print(''.join(t))