s = str(input()) ans = [] s = list(s) s.reverse() for c in s: if c == '<': ans.append('>') else: ans.append('<') print(''.join(ans))