# -*- coding: utf-8 -*- s = list(input()) s.reverse() for i in range(len(s)): if s[i] == "<": s[i] = ">" else: s[i] = "<" s = "".join(s) print(s)