# coding: utf-8 def main(): print(''.join(list(reversed(['<' if x == '>' else '>' for x in input()])))) if __name__ == '__main__': main()