S = input() R = [] for c in S[::-1]: if c == '<': R.append('>') else: R.append('<') print(''.join(R))