S = input()[::-1] s = '' for i in S: if i == '<': s += '>' else: s+= '<' print(s)