Find S Algorithm Using Python With Google