The sultan's perfect tree