A small manufacturing company has a fixed monthly operating cost of $120. In addition, each unit produced costs $8.50 in materials. However, if the company produces more than 50 units in a month, the material cost for each unit is reduced by $0.50. If the company's total monthly expenditure for production must not exceed $800, what is the greatest number of units the company can produce in a month?