from collections import * from itertools import * from functools import * from heapq import * import sys,math input = sys.stdin.readline S = input()[:-1] S = S.replace('<','.').replace('>','<').replace('.','>') S = list(S) S.reverse() print(''.join(S))