def back(Si): if Si=='>': return '<' else: return '>' S = input() for Si in S[::-1]: print(back(Si), end='') print()