A pyramid with a square base has a volume of 99 cubic feet. If the density of the pyramid is 0.05 grams per cubic foot, how much does the pyramid weigh to the nearest gram?