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