S = input() mirror = str() for i in range(len(S) - 1, -1, -1): if S[i] == '>': mirror += '<' else: mirror += '>' print(mirror)