# -*- coding: UTF-8 -*- S = input() S = reversed(list(S)) ans = '' for s in S: if s == '>': ans += '<' else: ans += '>' print(ans)