def r(c): if c == '<': return '>' else: return '<' s = input() ans = map(r, reversed(s)) print(*ans, sep="")