Find S Algorithm Using Python To Access