S = input() T = [] for i in S[::-1]: if i == '>': T.append('<') else: T.append('>') print(*T,sep='')