s = input() ret = '' for c in s[::-1]: if c=='>': ret += '<' else: ret += '>' print(ret)