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