Ben walked into a hardware store and asked the price of some items. The salesman said: One costs $1 Eight costs $1 Seventeen cost $2 One hundred four costs $3 One thousand seventy two costs $4 What was Ben buying?