import re


def cut_pair(exec_code):
    """
    <>や><、+-、-+のペアを無くす
    
    Parameters
    -------------
    exec_code: str
    
    Returns
    -------------
    cut_code: str
    """
    inc_dec_pair = re.compile(r"<>|><|\+\-|\-\+")
    cut_code = exec_code
    
    cut_num = 1
    while(cut_num >= 1):
        cut_code, cut_num = re.subn(inc_dec_pair, r'', cut_code)
    return cut_code