# coding: utf-8 def main(): print(mirrored(input())) def mirrored(l): def _mirrored(o, m): if not o: return m else: return _mirrored(o[:-1], m + ('>' if o[-1] == '<' else '<')) return _mirrored(l, '') if __name__ == '__main__': main()