A sprayable cosmetic agent for temporarily shaping keratin fibers, containing a) at least one uncrosslinked anionic polymer in a total amount of from 0.05 to 2 wt.%, based on the total weight of the cosmetic agent, comprising at least one structural unit of formula and at least one structural unit of formula and at least one structural unit of formula, where R and R 2 represent, in each case independently of one another, a hydrogen atom or a C1-C4 alkyl chain, R 1 represents a branched or unbranched, saturated or unsaturated C 1 -C 12 alkyl chain, R 3 represents a saturated and linear C 16 -C 20 alkyl group, R 4 represents a C 1 -C 4 alkyl chain, A represents a *-(CH 2 CH 2 O) x -* group, where x represents integers from 15 to 25, X + represents a physiologically acceptable cation, b) at least one uncrosslinked cationic polymer in a total amount of from 0.1 to 5 wt.%, based on the total weight of the cosmetic agent, comprising at least one structural unit of formula and at least one structural unit of formula and at least one structural unit of formula and at least one structural unit of formula where n represents 1, 2 or 3 methylene units, R 5 represents a hydrogen atom, a C 1 -C 30 alkyl group, a C 1 -C 4 aralkyl group, a C 2 -C 6 alkenyl group or a C 2 -C 6 hydroxyalkyl group, R 6 represents a functional group O-X +, where X + represents a physiologically acceptable cation or an NH2 group, R 7 represents a hydrogen atom or a C 1 -C 4 alkyl chain, Z - represents a physiologically acceptable anion, and c) water in a total amount of from 80 to 98 wt.%, based on the total weight of the cosmetic agent, wherein the cosmetic agent contains 0 wt.% of crosslinked polymers, based on the total weight of the cosmetic agent. a) at least one uncrosslinked anionic polymer in a total amount of from 0.05 to 2 wt.%, based on the total weight of the cosmetic agent, comprising at least one structural unit of formula and at least one structural unit of formula and at least one structural unit of formula, where R and R 2 represent, in each case independently of one another, a hydrogen atom or a C1-C4 alkyl chain, R 1 represents a branched or unbranched, saturated or unsaturated C 1 -C 12 alkyl chain, R 3 represents a saturated and linear C 16 -C 20 alkyl group, R 4 represents a C 1 -C 4 alkyl chain, A represents a *-(CH 2 CH 2 O) x -* group, where x represents integers from 15 to 25, X + represents a physiologically acceptable cation, R and R 2 represent, in each case independently of one another, a hydrogen atom or a C1-C4 alkyl chain, R 1 represents a branched or unbranched, saturated or unsaturated C 1 -C 12 alkyl chain, R 3 represents a saturated and linear C 16 -C 20 alkyl group, R 4 represents a C 1 -C 4 alkyl chain, A represents a *-(CH 2 CH 2 O) x -* group, where x represents integers from 15 to 25, X + represents a physiologically acceptable cation, b) at least one uncrosslinked cationic polymer in a total amount of from 0.1 to 5 wt.%, based on the total weight of the cosmetic agent, comprising at least one structural unit of formula and at least one structural unit of formula and at least one structural unit of formula and at least one structural unit of formula where n represents 1, 2 or 3 methylene units, R 5 represents a hydrogen atom, a C 1 -C 30 alkyl group, a C 1 -C 4 aralkyl group, a C 2 -C 6 alkenyl group or a C 2 -C 6 hydroxyalkyl group, R 6 represents a functional group O-X +, where X + represents a physiologically acceptable cation or an NH2 group, R 7 represents a hydrogen atom or a C 1 -C 4 alkyl chain, Z - represents a physiologically acceptable anion, and n represents 1, 2 or 3 methylene units, R 5 represents a hydrogen atom, a C 1 -C 30 alkyl group, a C 1 -C 4 aralkyl group, a C 2 -C 6 alkenyl group or a C 2 -C 6 hydroxyalkyl group, R 6 represents a functional group O-X +, where X + represents a physiologically acceptable cation or an NH2 group, R 7 represents a hydrogen atom or a C 1 -C 4 alkyl chain, Z - represents a physiologically acceptable anion, and c) water in a total amount of from 80 to 98 wt.%, based on the total weight of the cosmetic agent,