A U.S. program aimed at raising the self-esteem of inner-city children and keeping them off drugs and alcohol had the surprise effect of keeping them from having unprotected sex and getting pregnant, researchers said on Monday.

The benefits of the program, which targeted elementary school teachers and parents and not the children directly, lasted through the age of 21, researchers found.