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