# -*- coding: utf-8 -*- S = input() S = S[::-1] answer = '' for c in S: if c=='>': answer += '<' else: answer += '>' print(answer)