https://9lib.net/document/zlgjjn06-maximum-and-minimum-values.html