A vacation cabin has a water storage tank. In the first month (30 days) of vacation season, the amount of water in the tank changed by an average of -36 gallons per day. At the end of the month, the tank contained 1,340 gallons of water. How much water was in the tank originally?