Find S Algorithm In Python Code Run