The demand for a certain weekly magazine at a newsstand is a random variable with probability function p(i) = (10 - i)/18, i = 4, 5, 6, 7. If the magazine sells for $a and costs $2a/3 to the owner, and the unsold magazines cannot be returned, how many magazines should be ordered every week to maximize the profit in the long run?