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