def METHOD_NAME(matrices, count):
    if count == 0:
        return []
    if count == 1:
        return matrices
    result = []
    result.extend(matrices)
    for m in matrices:
        result.extend([m @ n for n in METHOD_NAME(matrices, count-1)])
    return result