short version one max problem