s = input()[::-1] s1 = [] for i in s: if i == '>': s1.append('<') else: s1.append('>') print(''.join(s1))