# coding: utf-8 # yukicoder No.400 鏡 S = input() S_mirror = ["<" if i == ">" else ">" for i in S][::-1] print("".join(S_mirror))