Kamala had 5,026 grams of flour in the canister. She purchased the 4,157-gram bag of flour. She poured some flour from bag to canister. As the result, mass of flour in canister is now twice mass of flour left in bag. Find how much flour is in bag now?