KamaLa had 5026 grams of flour in a canister. She bought 4157 grams. She poured from the bag into the cannister. As a result the mass of flour in cannister is now twice the mass of the flour in the bag. How much flour is in the bag now?