l = list(raw_input()) l.reverse() s = '' for c in l: if c == '>': s += '<' else: s += '>' print s