def change_vector_to_int(self, vector):
    vector = re.findall(re.compile('[0-9]'), vector)
    str_vector = ''.join(vector)
    sum = 0
    length = len(str_vector)
    for i in range(length):
        sum += (int(str_vector[i]) ** (length - 1))
    return sum
def change_vector_to_int(self, vector):
    vector = re.findall(re.compile('[0-9]'), vector)
    str_vector = .join(vector)
    sum = 0
    length = len(str_vector)
    for i in range(length):
        sum += (int(str_vector[i]) ** (length - 1))
    return sum