Kamala had5,026 grams of flour in a canister. She bought a 4,157 gram bag of flour. She poured some flour from the bag to the canister. As a result, the mass of the flour in the canister is now twice the mass of the flour in the bag. How much is in the bag now?